How to convert a time object from MS Access database to string

Bill Bell bill-bell at bill-bell.hamilton.on.ca
Fri Sep 7 07:45:56 EDT 2001


"Ng Peng Hwee" <NgPH at sg.fujitsu.com> wrote, in part:
>  How I can convert a time object read from the MS Access 
> Database to a string.

To set use:

Fields ( "theTime" ).Value = pywintypes.Time ( time.localtime ( ) )

To get use:

Fields ( "theTime" ).Value.Format ( )

I forget what arguments are available for 'Format'.

Bill




More information about the Python-list mailing list