If you want to use AM and PM , you have to unmark Use 24-hour format .

Please remove spaces between words.
IfyouwanttouseAMandPM,youhavetounmarkUse24-hourformat.