I have a unicode string u'May 12, 2014 8:00:40 PM'
and I want to convert it into a date time object but I dont want time stamp, only date.
output should be 2014/5/12
or 2014/05/12
I tried to use strptime but it didn't help me. may be I'm missing something else?
/usr/lib/python2.7/_strptime.pyc in _strptime(data_string, format)
326 if len(data_string) != found.end():
327 raise ValueError("unconverted data remains: %s" %
--> 328 data_string[found.end():])
329
330 year = None
ValueError: unconverted data remains: 1:33PM
I've already seen these threads
Converting string into datetime