Hi alynur,
for a simple 12 hour clock use a custom format of %r
However for me this is annoying as 5:50 pm will display as 05:15 pm
That is why I use %l in my time codes so %l:%M %P will give you 5:15 pm or earlier 5:15 am (that is a lower case L but the : might make it look like a capital L)
Hope this helps
Regards Zeb...