h:mm am/pm
the time format automatically changes to "AM" or "PM" in uppercase:
h:mm AM/PM
This also happens when you open a workbook created in a version of Microsoft Excel earlier than Excel 97, and the workbook uses the lowercase format. When you open the workbook in Excel 2000, the formatting for time data in cells or in charts automatically changes from "am/pm" to "AM/PM".