Dates are easily constructed and formatted : Date Time : Development PYTHON examples


PYTHON examples » Development » Date Time »

 

Dates are easily constructed and formatted


Dates are easily constructed and formatted


#Dates and Times


from datetime import date
now = date.today()
print now

print now.strftime("%m-%d-%y. %d %b %Y is a %A on the %d day of %B.")

          
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Development
» Date Time