Mechanical turk provides strings like this:
‘Wed Nov 03 17:14:17 PDT 2010’
Django datetime model fields require
YYYY-MM-DD HH:MM[:ss[.uuuuuu]]
What’s the right way to take in the 1st string and create the 2nd?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sounds like a job for
time.strptime()andtime.strftime()!