Python Split usage

Posted by Chris M on Stack Overflow See other posts from Stack Overflow or by Chris M
Published on 2010-05-07T15:36:53Z Indexed on 2010/05/07 15:38 UTC
Read the original article Hit count: 126

Filed under:
|

I'm cocking this up and it should be really simple but the value of sortdate is none (note im only doing this because converting a string to a date in Python is a bugger).

DateToPass = str(self.request.get('startdate'))
mybreak.startdate = DateToPass
faf = DateToPass.split('-')
sortdate = str(faf[2] + faf[1] + faf[0])

That should work? but its just being stored as null though the datetopass is being stored fine.

© Stack Overflow or respective owner

Related posts about appengine

Related posts about python