Brian,
DATEADD (datepart, number, date)
Also, as a FWIW you can add GETDATE() + 0.333, but that is not what you are
after this time.
RLF
> Hi there
>
[quoted text clipped - 19 lines]
> Thanks
> Brian
Brian - 26 Jun 2008 14:25 GMT
This worked perfectly. I just worked out the difference was actually + 6
hours so I changed it to GETDATE()+0.25 and it seems to work a treat.
Thanks a million!
Brian
> Brian,
>
[quoted text clipped - 28 lines]
> > Thanks
> > Brian
Russell Fields - 26 Jun 2008 15:55 GMT
Brian,
But what is the effect of Daylight Savings Time on your application? I ask
without doing all the research necessary to actually understand how US and
UK daylight savings time relate or fail to relate. 6 hours is easy, but 5
hours is not so easy by using decimals. (0.208333333333333...). So, I
actually would suggest using DATEADD for date arithmatic.
However, it may be that GETUTCDATE() would serve you better in this case.
RLF
> This worked perfectly. I just worked out the difference was actually + 6
> hours so I changed it to GETDATE()+0.25 and it seems to work a treat.
[quoted text clipped - 39 lines]
>> > Thanks
>> > Brian