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: 

To change hour format

Former Member
0 Kudos

Hi

I need to change hour format, for example

15:00:00 --> 03:00:00 PM or 21:00:00 --> 09:00:00 PM

How can i do it?

Thanks

Gregory

3 REPLIES 3

former_member194669
Active Contributor
0 Kudos

Hi,


if v_time > 12
   v_time = v_time - 12
   v_ampm = 'PM'.
else.
   v_ampm = 'AM;
endif.

also check

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please try FM HRVE_CONVERT_TIME and give parameter TYPE_TIME = 'A'.

Regards,

Ferry Lianto

Former Member
0 Kudos

Hi

Thanks for your answers

Regards

Gregory