Jump to content

{date} and {time} format in Snippets


Recommended Posts

The list andy mentions above is for V2. Is there a V3 documentation somewhere? I have noticed that I can use more robust date features with V3. For instance I can now use {date:YMMddHHmmssss} to create a unique date stamp and I can use {date:YYYYMMdd} to create sortable dates for files.

 

Are there other new place holders or placeholder options other than what is listed on the above page?

Edited by BigHandsome
Link to post

The list andy mentions above is for V2. Is there a V3 documentation somewhere? I have noticed that I can use more robust date features with V3. For instance I can now use {date:YMMddHHmmssss} to create a unique date stamp and I can use {date:YYYYMMdd} to create sortable dates for files.

 

Are there other new place holders or placeholder options other than what is listed on the above page?

 

 

Hi guys,

 

This is already possible in Alfred 3, but as it's still in beta, the documentation isn't live yet.

 
You can just use {date:FORMAT} e.g. for ISO 8601: {date:yyyy-MM-dd'T'HH:mm:ssZZZZZ}
 
Take a look at http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patternsuntil our own documentation is live to be more specific with your date formatting.
 
Cheers,
Vero
Link to post

Awesome! This is great.

 

Is there a way to do math with the dates. The last thing I need to port from TextExpander is a date formula that allows me to insert the date for 14 days from now. the snippet looks like this in TextExpander %@+14D%B %e, %Y. I was wondering if there was a similar in the new snippets features?

Link to post
  • 3 years later...
On 5/18/2016 at 8:48 PM, BigHandsome said:

Awesome! This is great.

 

Is there a way to do math with the dates. The last thing I need to port from TextExpander is a date formula that allows me to insert the date for 14 days from now. the snippet looks like this in TextExpander %@+14D%B %e, %Y. I was wondering if there was a similar in the new snippets features?

You can use like below.

 

{date +14D:yyyy-MM-dd}

 

see more: https://www.alfredapp.com/help/workflows/advanced/placeholders/

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.

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