andy Posted May 18, 2016 Share Posted May 18, 2016 (edited) 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 May 18, 2016 by andy Link to comment
andy Posted May 18, 2016 Author Share Posted May 18, 2016 (edited) sorry my bad, found it https://www.alfredapp.com/help/features/clipboard/dynamic-placeholders/ Edited May 18, 2016 by andy Link to comment
BigHandsome Posted May 18, 2016 Share Posted May 18, 2016 (edited) 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 May 18, 2016 by BigHandsome Link to comment
Vero Posted May 18, 2016 Share Posted May 18, 2016 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 andy and Chris Messina 2 Link to comment
BigHandsome Posted May 18, 2016 Share Posted May 18, 2016 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 comment
Namo Posted May 12, 2020 Share Posted May 12, 2020 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 comment
todoublez Posted April 8, 2022 Share Posted April 8, 2022 Hi guy, I'm new here. forgive me if this is a silly question... any workflow can paste current date without searching the snippets ? like i just have to launch alfred and type : date, it will automatically paste current date. Link to comment
Vero Posted April 8, 2022 Share Posted April 8, 2022 @todoublez There's no need to search the snippets to paste the date. If you set up your snippets for text auto-expansion, you can just type your snippet shortcut in your document (without showing Alfred's Snippets Viewer) and Alfred will replace the keyword with your dynamic date. Here's how you can set up text expansion: https://www.alfredapp.com/help/features/snippets/auto-expansion/ You would then create a snippet containing {date} or a variation of it for the specific date format you want: https://www.alfredapp.com/help/workflows/advanced/placeholders/#date-time If you specifically want to pop up Alfred to paste the date, you can create a workflow to do this. Connect a Keyword object to a Copy to Clipboard. Put your {date} into the clipboard object and tick the box to "Paste to frontmost app". Let me know if you need any further help Cheers, Vero 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