<human>:  python - convert datetime to varchar/string
<bot>: Here is some code to parse DateTime object `datetimevariable` using format '%Y-%m-%d'

datetimevariable.strftime('%Y-%m-%d')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.