Change 18:15 to 12-hours format.
Conversion from 24-hour format to 12-hour format:
If the given time is greater than 12:00, then
24 hour time - 12:00 = time in PM
If the given time is lesser than 12:00,
then it remains the same time as AM
If the given time is 00:00 in 24-hours, then it is 12 AM .
If the given time is 12:00 in 24-hours, then it is 12 PM.
Hence in 24 hour format 18:15 - 12:00 = 6:15 PM