โ† Cognizant questions
CodingEasy

Convert 24-hour time to 12-hour time format

Filed under Cognizant

Given a string representing time in 24-hour format (HH:MM), convert it to 12-hour format (HH:MM AM/PM).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Cognizant questions

Collected from public candidate posts and coding forums. Updated Nov 2026.