You can also use java.text.SimpleDateFormat…
[code]from java.text import SimpleDateFormat
inputFormat=SimpleDateFormat(“EEE MMM dd HH:mm:ss Z yyyy”) # Must match the format of the input string
outputFormat=SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”) # The format you want to convert to
dateIn=“Wed Mar 26 10:13:54 CET 2014” # Input Time/Date
processedDateIn=SimpleDateFormat.parse(inputFormat,dateIn) # Convert Input String to Java Date
dateOut=outputFormat.format(processedDateIn) # Convert Java Date to a New String
print dateOut
[/code]