Date formats

Max M maxm at mxm.dk
Fri Jun 14 09:56:33 CEST 2002


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

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

This give dates of the type:

     01-01-2002

For some reason my customer wants dates of the type:

     1-1-2002

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