datetime = '0000-00-00 00:00:00'.split('-')
Right now it just splits it at the hyphen, but is it possible to split this string at both -‘s and :’s ?
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.
One idea would be something like this (untested):
Or this, which fits your data better.