[Tutor] datetime a.m. not AM

Sander Sweers sander.sweers at gmail.com
Mon Feb 8 23:00:40 CET 2010


On ma, 2010-02-08 at 13:02 -0800, bevan j wrote:
> data = '1/09/1978 1:00:00 a.m.' 

If you know this will always be in the form of 'a.m.' you can replace it
with 'am' by data.replace('a.m.','am').

Greets
Sander



More information about the Tutor mailing list