Jump to content

Date snippets with "st" "nd" "rd" "th" (ordinal) formatting


Recommended Posts

Hi all! 👋🏻 I'm trying to get relative dates to format as ordinal numbers for a particular day.

 

I currently have {date +7d:long} which gives me, for e.g., December 1, 2020, instead of December 1st, 2020, which is what I need (I'm trying to work with Roam Research which needs ordinal formatting to link things!).

Thanks in advance for any assistance!

(
I've checked out this page and done some google-fu finding only stuff that's currently too advanced for me like this.)

Link to comment
  • 5 months later...

Making dates with ordinal numbers is fairly straightforward to do. I can't help until somebody explains what's supposed to happen with them, though.

 

You can't just add a new placeholder macro to Alfred, so you need to describe what kinds of ordinal dates you need to put where and how.

 

If you just want a snippet that inserts the current date with an ordinal for the day, that's easy.

Link to comment
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...