2007 Jun 22 10:25 AM
i have a variable in which i am fecthing the current date using ' SY-DATUM'. The date fetched is in 'DDMMYYYY' format, bt i want the date in YYYYMMDD format.
Similarly i am fetchin time using field 'SY-UZEIT' which is in 12 hrs format. i want it as a 24 hrs format. how do i go about this. Plzz help me on this....
Thanks.
Regards,
Frank.
i have a variable in which i am fecthing the current date using ' SY-DATUM'. The date fetched is in 'DDMMYYYY' format, bt i want the date in YYYYMMDD format.
Similarly i am fetchin time using field 'SY-UZEIT' which is in 12 hrs format. i want it as a 24 hrs format. how do i go about this. Plzz help me on this....
Thanks.
Regards,
Frank.
2007 Jun 22 10:28 AM
Frank
You can change it in User Profiles but a recommended way is using Edit mask.
K.Kiran.
2007 Jun 22 10:28 AM
Hi
check the fun module
ABI_TIMESTAMP_CONVERT_FROM
or you can offset the Field into YEAR,DATE and MOnth separately and concatenate them
Reward points for useful Answers
Regards
Anji
2007 Jun 22 10:29 AM
HI,
use edit mask to display date in your own format,
there are some function modules Convet__dateformat
thanks,
Ravi
2007 Jun 22 10:40 AM
Hi Frank,
U can use write statement for this :
Write date into date1 yyyymmdd.
Same u can write for time also.
If u want more information press f1 on write statement
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |