For example, I\'m trying to convert 2008-09-26T01:51:42.000Z to 09/26/2008. What\'s the simplest way of accomplishing this?
def datechange(datestr): dateobj=datestr.split('-') y=dateobj[0] m=dateobj[1] d=dateobj[2] datestr=d +'-'+ m +'-'+y return datestr
U can make a function like this which take date object andd returns you date in desired dateFormat....