Current date and time


#1

Is there a built in function in python which gives the current date?


How do I assign a value to a variable?
#2
from datetime import datetime

now = datetime.now()

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.