time and date code example
Example 1: what time is it
console.log(new Date().toUTCString());
// IF YOU REALLY WANT THE TIME, JUST LOOK AT YOUR SYSTEM CLOCK BTW.
Example 2: datetime today
from datetime import datetime
# datetime object containing current date and time
now = datetime.now()
print("now =", now)
# dd/mm/YY H:M:S
dt_string = now.strftime("%d/%m/%Y %H:%M:%S")
print("date and time =", dt_string)