on 11-06-2007 2:50 AM
Hi, I need to convert a timestamp of any selected timezone, to UTC.
I find that CONVERT TIME STAMP <timestamp> into DATE <date> TIME <time> TIME ZONE <tz> converts from system time to <tz>. But in my application, the user selects the time zone from a drop down, and this needs to be converted into UTC.
Please help!
Hi Shalini,
Try this statement:
CONVERT DATE dat [TIME tim [DAYLIGHT SAVING TIME dst]]
INTO TIME STAMP time_stamp TIME ZONE tz.
This statement adopts a date specified in dat, a time specified in tim, and a daylight saving time selection specified in dst as the local date and time specification for the time zone specified in tz, converts it to the UTC reference time, and assigns the result to the time_stamp variable as a time stamp.
Hope this helps.
Regards,
Wenonah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.