dim sDate,sTime as string
DateTime.DateFormat = "MM/dd/yyyy"
sDate=DateTime.Date(DateTime.Now)
sTime=DateTime.Time(DateTime.Now)
The actual date and time was 4/14/12 at 8:53:12 AM
sDate returned 3/22/2012 and sTime returned 15:42.24
My machine PC date and time are also correct. Would anyone have any thoughts on why erroneous dates and times are being returned ?
Any suggestions would be greatly appreciated.
Thank you,
Dave Tucker
DateTime.DateFormat = "MM/dd/yyyy"
sDate=DateTime.Date(DateTime.Now)
sTime=DateTime.Time(DateTime.Now)
The actual date and time was 4/14/12 at 8:53:12 AM
sDate returned 3/22/2012 and sTime returned 15:42.24
My machine PC date and time are also correct. Would anyone have any thoughts on why erroneous dates and times are being returned ?
Any suggestions would be greatly appreciated.
Thank you,
Dave Tucker