My task is to verify whether string is valid date and time or not.
\"2013-01-01W23:01:01\"
The date and the time are separated with
You can try this ,
>>> a="2013-01-01W23:01:01" >>> a.split('W') ['2013-01-01', '23:01:01']
And then send a.split('W')[0] and a.split('W')[1] to the validation functions.
a.split('W')[0]
a.split('W')[1]