Datetime Display Issue

I am not sure if this is a bug or something that I've configured wrong. I set up a label with an expression binding for the text property:

"<html><center>" + 
dateFormat({[System]Gateway/CurrentDateTime}, "h:mm a") + "<br>" + 
dateFormat({[System]Gateway/CurrentDateTime}, "MM/DD/YYYY") + "</center>"

However, there is a random zero in the middle of the date when it is displayed (second line should be "04/16/2025").
image
Is there some strange setting that's causing this, or is this simply a bug?

DD is day of the year (0 - 365), dd is day of month

7 Likes

You also want yyyy not YYYY:

6 Likes