Right now I have:
timestamp = datetime.strptime(date_string, \'%Y-%m-%d %H:%M:%S.%f\')
This works great unless I\'m converting a string tha
I'm late to the party but I found if you don't care about the optional bits this will lop off the .%f for you.
datestring.split('.')[0]