btn112 Posted May 7, 2019 Share Posted May 7, 2019 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
GuiB Posted May 8, 2019 Share Posted May 8, 2019 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 flexbox and btn112 1 1 Link to comment
btn112 Posted May 8, 2019 Author Share Posted May 8, 2019 Thank you, this is exactly what I was hoping for! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now