Jump to content

Date Snippet - Month


Recommended Posts

Hi, I would like to create a snippet system for dates so that nmonth, on May 1st will give me next month as "June." Or pmonth on May 1st will give me "April." Or mmonth will give me "May" on May 1st.

 

How do I achieve this?

Link to comment

I think this will give you what you want:

 

You can download an exported snippet collection here: https://d.pr/f/wWdRPN

 

Or, if you want to build them yoursel, create new snippets with:

nmonth => {date +1M:MMMM}

pmonth => {date -1M:MMMM}

mmonth => {date:MMMM}

 

You can find more about snippet date arithmetic and format

here: https://www.alfredapp.com/help/features/snippets/

and here: http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns

Link to comment

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...