Hi All
My original aim was to get the difference between todays date and a specified date, for "todays" date I only wanted the date, zero time.
In an old thread [2012] Erel posted the following code:
Dim date, time AsLong
DateTime.SetTimeZone(0)
date = DateTime.Now
time = date ModDateTime.TicksPerDay
date = date - time
This appears to work quite well but I am unsure of the knock-on effects of changing the time zone.
My query is, does setting the time zone(0) have any effects that require the time zone to be "reset" to the local time zone?
I am probably concerned unnecessarily.
Regards Roger