Python Format DateTime to String

Descripción

Format datetime to string


File Template: ❌


Prefix

datetime:format


Scopes

python


Snippet de código

${1:formatted_dt} = ${2:dt}.strftime("${3|%Y-%m-%d %H:%M,%Y-%m-%d %H:%M:%S,%d/%m/%Y %H:%M,%d/%m/%Y %H:%M:%S,%m/%d/%Y %H:%M,%m/%d/%Y %H:%M:%S|}")