How to use date object

M

marie

I am a newbie in python. And I would like to know how to create and
use the methods in date. Can someone please show me some code about
it. Thanks.
 
M

Mark McEahern

marie said:
I am a newbie in python. And I would like to know how to create and
use the methods in date. Can someone please show me some code about
it. Thanks.
import datetime
year = 2004
month = 10
day = 22
d = datetime.datetime(year, month, day)
print d

etc.

// m
 
A

Andrew Dalke

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,209
Messages
2,571,088
Members
47,687
Latest member
IngridXxj

Latest Threads

Top