Skip to main content

CSS to show all four digits of year

  • August 27, 2026
  • 1 reply
  • 16 views

NateC
Helper I
Forum|alt.badge.img+2

Hi all.

I’m updating a bunch of certificates for all of my Power Users, & one has requested a different date format than the rest - they wish to see the date in mm/dd/yyyy format (so, e.g., something issued today would show ‘08/27/2026’).

But i can only coax the last 2 digits out of my year. i initially tried ‘mm/dd/yyyy’, but i got ‘0808/2727/26262626’. I could fix the day & month easily enough, but anything i try for the year only returns ‘26’ one or more times; it does not show the first 2 digits whatever i try.

Any suggestions are appreciated.

1 reply

NateC
Helper I
Forum|alt.badge.img+2
  • Author
  • Helper I
  • August 27, 2026

Never mind, i withdraw my question. I accidentally figured out that I just need a single, upper-case ‘Y’.

m/d/Y=08/27/2026