Conditional AM/PM text?

I think you can do that like in this guide:

2 Likes