2008 Mar 28 6:16 AM
Hi ,
i have a doubt. how can we convert the date into german language. like 01 maart 2008 (01.03.2008). pls, send me the reply ASAP.
Thanks & Regards,
kumar.
Hi ,
i have a doubt. how can we convert the date into german language. like 01 maart 2008 (01.03.2008). pls, send me the reply ASAP.
Thanks & Regards,
kumar.
2008 Mar 28 6:45 AM
Hi,
the below given program can be used to convert the dates.
This is regarding the conversion of time between different time zones. In order to achieve this, first we need to convert the time to standard GMT and from GMT to the required time zone.
The following function modules does the same.
The function module IB_CONVERT_INTO_TIMESTAMP is used to convert the time to the GMT. The input parameters are DATE, TIME and the TIMEZONE(user's time zone, default value SY-ZONLO). The output parameter is the timestamp in GMT.
The function module IB_CONVERT_FROM_TIMESTAMP is used to get the time in required time zone. The input parameters for this are the timestamp obtained from the above function module and the time zone, to which the time needs to be converted.
The output parameters are the date, time in the required time zone.
Code
REPORT ZTIMEZONES .
*****************************************************
This program is used to convert the times between *
different time zones. This program deals with the *
conversion of time from INDIA time zone to the PST *
time zone *
*****************************************************
Declaring the work variables.......................
DATA :
timestamp like TZONREF-TSTAMPS,
time like sy-uzeit,
date like sy-datum.
The following function module is used to convert the
time and date into GMT timestamp
CALL FUNCTION 'IB_CONVERT_INTO_TIMESTAMP'
EXPORTING
i_datlo = sy-datum
i_timlo = sy-uzeit
I_TZONE = 'INDIA'
IMPORTING
E_TIMESTAMP = timestamp.
The following function module is used to convert the
above obtained timestamp to PST time zone date and time.
CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'
EXPORTING
i_timestamp = timestamp
I_TZONE = 'PST'
IMPORTING
E_DATLO = date
E_TIMLO = time.
write 😕 'Date and Time at PST zone is ',date, time.
Hope this will help to some extent if not completely.
Regards,
Sekhar
2008 Mar 28 6:47 AM
Hi,
use this function module,
call function 'CONV_EXIT_LDATE_OUTPUT_LANGU'
exporting
input = date
language = lv_language
importing
output = ext_date.
endif.INPUT 20001212
LANGUAGE DE
OUTPUT 12.Dezember2000
Regards,
S.Nehru
Edited by: Kendi on Mar 28, 2008 7:48 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |