print dt.datetime.now().format code example
Example: python printing date
import datetime
print(datetime.datetime.now()) # --> (year, month, day, hour, minute, second, millisecond)
import datetime
print(datetime.datetime.now()) # --> (year, month, day, hour, minute, second, millisecond)