Forum Post: RE: Inconsistency assigning date var to datetime-tz vs. using the date function

  • Thread starter Thread starter tbergman
  • Start date Start date
Status
Not open for further replies.
T

tbergman

Guest
Hi Robin, I can understand not changing it. While on the subject, I decided to try going from Datetime-tz to datetime and got a result I can't explain. Basically the same code. When I run this, I get 11PM on April8 for vDate 1. Where, and in what timezone, is it 11PM and why would I get that result? DEFINE VARIABLE vdateTZ AS DATETIME-TZ. DEFINE VARIABLE vDate1 AS DATETIME. DEFINE VARIABLE vDate2 AS DATETIME. vDateTZ = datetime-tz(4,9,2014,0,0,0,0,-180). vDate1 = vDateTZ. /*vDate2 = datetime(vDateTZ).*/ MESSAGE NOW SKIP vDateTZ SKIP vDate1 SKIP vDate2 VIEW-AS ALERT-BOX. The result is: 04/15/2014 11:22:24.161-04:00 04/09/2014 00:00:00.000-03:00 04/08/2014 23:00:00.000 ?

Continue reading...
 
Status
Not open for further replies.
Back
Top