import ‘datetime’ module

from datetime import datetime

creating a date using year, month, day as arguments

birthday.year, month, day birthday.weekday()

creating a date using datetime.now()

datetime.now()

parsing a date using strptime

string to date (return datetime class object) Return a datetime corresponding to date_string, parsed according to format

rendering a date as a string using strftime

date to string Return a string representing the date, controlled by an explicit format string