Date time picker's display

I display a date in the date/time picker’s initial content as custom format.
Now custom format type is [mm/dd/yyyy 12:00 am ].
But display is [05/22/2024 12:00 a5].
May be the [m] in [am] is recognized as the [m] in the month.

How can I display am?

Because your date/time picker is set to date only, it normally can’t display time, but only date.

If you want to display “12:00 am” after the date, i think it’s non conventional, but you can use this:

mm/dd/yyyy 12:00 a\M

Backslash cancel the formatting, but for some reason you need to put the “M” uppercase.

Hope it’s helps !

Thank you for your reply.

I was able to display am.

This topic was automatically closed after 70 days. New replies are no longer allowed.