Answers for "how to extract date and time separtely from date and time in django"

3

how to get the current date hour minute month year in python

########################################################################
import datetime
now = datetime.datetime.now()
print(now.year, now.month, now.day, now.hour, now.minute, now.second)
########################################################################
from datetime import *
now = datetime.now()
print(now.year, now.month, now.day, now.hour, now.minute, now.second)
########################################################################
Posted by: Guest on September-03-2020

Code answers related to "how to extract date and time separtely from date and time in django"

Python Answers by Framework

Browse Popular Code Answers by Language