I have following date:
2005-08-11T16:34:33Z
I need to know if this is date is before or after datetime(2009,04,01) and I can\'t se
If you know the string just use the datetime.datetime(year, month, day, hour, minute, second) function. Split your string to get the appropriate variables and put it in to make it a datetime type. Then just compare it against whatever you need.
Or you can use the iso format as people have suggested also.