Author Topic: Ordinal number(day) variable  (Read 3331 times)

Offline Dimitrije

  • Newcomer
  • *
  • Posts: 2
    • View Profile
Ordinal number(day) variable
« on: June 18, 2025, 05:22:22 PM »
Could we get a variable that outputs ordinal numbers, specifically days of the month, in the correct format: 1st, 2nd, 3rd etc? I hope it's a simple addition but would help tremendously for certain captions. I suggest the name {dord}

Offline Claude Diderich

  • Member
  • **
  • Posts: 53
  • Claude Diderich
    • View Profile
    • Claude Diderich Sports Pictures
Re: Ordinal number(day) variable
« Reply #1 on: July 04, 2025, 07:27:11 AM »
As a quick fix, you could define code replacements, e.g.
o1 1st
o2 2nd
o3 3rd
...

and then use $o{iday}$
Claude Diderich, sports photographer, member of AIPS and sportpress.ch

Offline ahoward

  • Camera Bits Staff
  • Uber Member
  • *****
  • Posts: 1191
    • View Profile
Re: Ordinal number(day) variable
« Reply #2 on: October 15, 2025, 03:06:03 PM »
Just to update on this, we added this feature in the builds released this week (builds 8835, or 8120 if running a version of macOS older than Ventura on an Intel-based Mac).

{ordinalday} and {oday} will get you the value from the Capture Date
{iptcordinalday} and {iody} will get you the value from the IPTC Date