How to get current date

SteveN smnordby at yahoo.com
Mon Jun 11 21:39:04 EDT 2001


ykchew wrote:
> 
> Hi there,
>    I'm newbies and i want to know to get current date from python2.0 and
> merge it with string
> 
> thanks

import time
date_as_string = time.strftime("%d", time.localtime(time.time()))

-SteveN-



More information about the Python-list mailing list