Date formats

Max M maxm at
Fri Jun 14 03:56:33 EDT 2002

I have a project where I have defined the following date format:

     gDateFormat = '%d-%m-%Y'

This give dates of the type:


For some reason my customer wants dates of the type:


Without the leading zero in single digit dates. But when I look in the 
docs for date time formats there is no way to specify days and months in 
that format.

Off course it's easy to write a function which returns the correct date 
format but can this really be true that I have to do it?

I want batteries dam'n it!


regards Max M

More information about the Python-list mailing list