4

Is there any difference between datetime.today() and datetime.now()?

Using them lately has proved that there is none.

Yitzchak Blank
  • 328
  • 3
  • 18
Vaggelis Manousakis
  • 292
  • 1
  • 5
  • 15

1 Answers1

0

DateTime.Today only gives today's date and default time as 12:00:00.

DateTime.Today : 1/1/2018 12:00:00 AM.

DateTime.Now gives current time of running thread with today's date. (Date and Time of the computer where code is running)

DateTime.Now : 1/1/2018 8:49:52 AM.

Laxmi
  • 3,830
  • 26
  • 30