Application Development 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: 

How to format time for a char field?

Former Member
0 Kudos
538

Hello team,

I'm looking for a command where I can format a time value in a character field in the way how it would look when you would display it in a time field.

Similar to what you would do with date:

"WRITE date TO date_formatted MM/DD/YYYY."

Can anybody help?

Regards,

Torsten

1 ACCEPTED SOLUTION

Former Member
0 Kudos
142

Try this :

write time to time_formatted using edit mask '__:__:__'.

Hope this helps,

Erwan.

Message was edited by: Erwan LE BRUN

2 REPLIES 2

Former Member
0 Kudos
143

Try this :

write time to time_formatted using edit mask '__:__:__'.

Hope this helps,

Erwan.

Message was edited by: Erwan LE BRUN

Former Member
0 Kudos
142

Try this FM:

CONVERSION_EXIT_PDATE_OUTPUT

I'm Sorry the FM is CONVERSION_EXIT_TIMLO_OUTPUT

Svetlin

Message was edited by: Svetlin Rusev