Format AM/PM

This method will convert the 24 hour format value into AM/PM format.

Simply call the following function and it will convert the 24 hour format value i.e. 19 into AM/PM format.

This will display the time like this: