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: 

Get the time in AM and PM ---> Urgent

Former Member
0 Kudos

Hi all,

Can any one help me out to print the time in AM and PM i.e. e.g.. 1:00 am and 2:00 and so on 3:00 pm.Do let me know ASAP if you have got the solution for this

Regards,

Sudhakar

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Hi Use this FM

HRVE_CONVERT_TIME

in that you need to specify

TYPE_TIME 'A'

INPUT TIME

INPUT_AM_PM 'AM' or 'PM'

-


TYPE_TIME A

INPUT_TIME 13:00:00

INPUT_AM_PM AM

Export parameters Value

OUTPUT_TIME 01:00:00

OUTPUT_AM_PM PM

Regards,

Ram

Pls reward points if helpful

Message was edited by: Ram Mohan Naidu Thammineni

3 REPLIES 3

Former Member
0 Kudos

Hi,

Hi Use this FM

HRVE_CONVERT_TIME

in that you need to specify

TYPE_TIME 'A'

INPUT TIME

INPUT_AM_PM 'AM' or 'PM'

-


TYPE_TIME A

INPUT_TIME 13:00:00

INPUT_AM_PM AM

Export parameters Value

OUTPUT_TIME 01:00:00

OUTPUT_AM_PM PM

Regards,

Ram

Pls reward points if helpful

Message was edited by: Ram Mohan Naidu Thammineni

Former Member
0 Kudos

Hi sudhakar,

1. 14:00:00 = 02:00 PM

2. use this FM

HRVE_CONVERT_TIME

3. In the parameter TYPE_TIME, give 'A'.

regards,

amit m.

Former Member
0 Kudos

Hey Really thanks a lot and cheers I have given the points