Can anyone explain the difference between System.DateTime.Now and System.DateTime.Today in C#.NET? Pros and cons of each if possible.
System.DateTime.Now
System.DateTime.Today
Time. .Now includes the 09:23:12 or whatever; .Today is the date-part only (at 00:00:00 on that day).
.Now
.Today
So use .Now if you want to include the time, and .Today if you just want the date!
.Today is essentially the same as .Now.Date
.Now.Date