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?

Share this post

Link to post

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

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...