2008 Jan 02 3:22 AM
Hi everyone,
Is there a function module or command we can use to convert a date and/or time to a particular timezone?
Thanks!
2008 Jan 02 4:24 AM
Hi,
Use the FM '/OSP/TIMEZONE_DETERMINE' or '/SOMO/GET_TIMEZONE'
Hi everyone,
Is there a function module or command we can use to convert a date and/or time to a particular timezone?
Thanks!
2008 Jan 02 3:31 AM
The following Syntax is used to convert Date and time to time zones.
CONVERT TIME STAMP <tst> TIME ZONE <tz> INTO DATE <d> TIME <t>.
CONVERT DATE <d> TIME <t> INTO TIME STAMP <tst> TIME ZONE <tz>.
As long as <tst> has type P(8) or P(11) with 7 decimal placed, and <tz> has type C(6), the time stamp <tst> will be converted to the correct date <d> and time <t> for the time zone <tz>.
Also
'IB_CONVERT_FROM_TIMESTAMP' should help converting time to specific time zone
Vinodh Balakrishnan
2008 Jan 02 3:51 AM
Hi
Use SY-DATLO and SY-TIMLO for getting local date and time.
Cheers,
Hakim
mark all useful answers
2008 Jan 02 4:24 AM
Hi,
Use the FM '/OSP/TIMEZONE_DETERMINE' or '/SOMO/GET_TIMEZONE'
2008 Jan 02 5:11 AM
Hi Maple,
You can use this FM
ISU_DATE_TIME_CONVERT_TIMEZONE
To get the converted date and time for the specific time zone
Regards Rk
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |