Jump to content
Sign in to follow this  
andy

{date} and {time} format in Snippets

Recommended Posts

Hi guys, the new snippets auto expansion is nice. Thanks for such a great update! 

Anyway is it possible to set different format for {date} and {time} ?

Edited by andy

Share this post


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?

Edited by BigHandsome

Share this post


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

Share this post


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?

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.

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.

Sign in to follow this  
×
×
  • Create New...