Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

DATE AND TIME FORMAT

Former Member
0 Likes
820

Hi all,

I'am sending mail thru a Function module .the mail message contains time and date also. but the date and time is not in required format ie dd/mm/yyyy and time in 12:01:14 format.they are just yyyymmdd and 120114 .how can i get the required format in hte message thru mail.

Thanks,

Mahesh

5 REPLIES 5
Read only

Former Member
0 Likes
729

What is the function module you are using?

If you are directly using the Internal Table data for sending the mail, populate the internal table values of the date and time with the values of the required format..

Reward the points if it is useful.

Read only

0 Likes
729

hi,

How can i format and pass the value into the internal table.Presently i'am passing into a internal table. please recommend.

Thanks and regards,

mahesh

Read only

former_member386202
Active Contributor
0 Likes
729

Hi,

Use function module "CY_CONVERT_DATE" . It will convert the date into current user format.

Regards,

Prashant

Read only

Former Member
0 Likes
729

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..

Hope this helps .

regards,

Praveen

Read only

Former Member
0 Likes
729

Hi mahesh

just try by using EDIT MASK opting in write statement.

reward,if it it useful