01-19-2008 8:03 AM
Hi friends,
I want to change this formate date and time 18.01.2008 16:40:31 to 01/18/2008 04:40:31PM
Could you please any one Suggest any FM for this?
Thanks & regards
HB
01-19-2008 8:09 AM
Hi,
Change your date and time format before passing to FM..
Using EDIT MASK 'YYYY/MM/DD' and 'HH:MM:SS'
And then call FM..
"CY_CONVERT_DATE" . It will convert the date into current user format.
Regards
01-19-2008 8:09 AM
Hi,
Change your date and time format before passing to FM..
Using EDIT MASK 'YYYY/MM/DD' and 'HH:MM:SS'
And then call FM..
"CY_CONVERT_DATE" . It will convert the date into current user format.
Regards
01-19-2008 8:18 AM
thanks for ur reply..
Could you please tel me how to edit mask?......
Please provide the steps....
01-19-2008 8:24 AM
Hi Hans,
Follow the below logic ok..
data: lv_dat TYPE d, "For Date
lv_date(10). "For Date
*For Date
SET COUNTRY 'US'.
lv_dat = '18.01.2008'
WRITE lv_dat TO lv_date MM/DD/YYYY.
Reward points if helpful.
Kiran Kumar.G.A
01-19-2008 8:32 AM
Hi,
U can use edit mask for ur requiremnet as
DATA date TYPE d VALUE '18.01.2008 '.
WRITE (8) date USING EDIT MASK '_/_/_'
Regards