V
VR
Hi all, I'm sure I'm missing something while dealing with dates in my
code.... If anybody could give me a clue...
Here's the code:
dim dt1,dt2 as dateTime
dt1 = new dateTime(2006,1,1,22,0,0)
dt2 = dt1.addHours(3)
the problem is that I get always the same date in dt1 and dt2.
If I change the code to
dim dt1,dt2 as dateTime
dt1 = new dateTime(2006,1,1,22,0,0)
dt2 = dt1
dt2 = dt2.addHours(3)
I get the same results...
Shouldn't dt2 get the value of 1/2/2006 01:00?
Thanks a lot,
Regards,
Victor
code.... If anybody could give me a clue...
Here's the code:
dim dt1,dt2 as dateTime
dt1 = new dateTime(2006,1,1,22,0,0)
dt2 = dt1.addHours(3)
the problem is that I get always the same date in dt1 and dt2.
If I change the code to
dim dt1,dt2 as dateTime
dt1 = new dateTime(2006,1,1,22,0,0)
dt2 = dt1
dt2 = dt2.addHours(3)
I get the same results...
Shouldn't dt2 get the value of 1/2/2006 01:00?
Thanks a lot,
Regards,
Victor