How do change date formats?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

How do change date formats? Mon Aug 29, 2022 10:39 pm • by timkrupnik@gmail.com
Hi friends!

I want my date formats to be 220830 rather than '2022-08-30' as the latter takes too many characters. How do I do that, and also add a space after the date, when changing download titles?
timkrupnik@gmail.com
 
Posts: 7
Joined: Mon Aug 29, 2022 10:31 pm

Re: How do change date formats? Tue Aug 30, 2022 8:51 am • by Mr_Noodle
In your Rename pattern, after you dropped the date attribute in, click on it to bring up a menu. There's an option there to edit the date format. That will bring up a popover where you can edit the format pattern. You can remove the existing dashes and add a space as needed.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: How do change date formats? Thu Sep 01, 2022 6:57 am • by timkrupnik@gmail.com
Mr_Noodle wrote:In your Rename pattern, after you dropped the date attribute in, click on it to bring up a menu. There's an option there to edit the date format. That will bring up a popover where you can edit the format pattern. You can remove the existing dashes and add a space as needed.



THANK YOU!


Can you also by chance let me know if there is a way to set an 'if-then' rule? For example, if the downloadable file already has today's date added, then do not add the new date?

With best regards,

Tim
timkrupnik@gmail.com
 
Posts: 7
Joined: Mon Aug 29, 2022 10:31 pm

Re: How do change date formats? Thu Sep 01, 2022 9:13 am • by Mr_Noodle
Add a condition to match the name with the pattern with the date in it.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: How do change date formats? Fri Sep 02, 2022 5:45 am • by timkrupnik@gmail.com
Mr_Noodle wrote:Add a condition to match the name with the pattern with the date in it.



When I run this rule I get errors. How can I fix this?


2022-09-02 15:44:48.083 hazelworker[65352] Running worker (v5.1.1) for folder with identifier: 16777220-1958404.
2022-09-02 15:44:48.085 hazelworker[65352] ###main load address: 0x10f000000
2022-09-02 15:44:48.085 hazelworker[65352] ###Hazel Core load address: 0x10f2db000
2022-09-02 15:44:48.085 hazelworker[65352] ###Noodle load address: 0x10f5fc000
2022-09-02 15:44:48.085 hazelworker[65352] ###CK load address: 0x10f1bb000
2022-09-02 15:44:48.115 hazelworker[65352] Processing folder Downloads (forced)
2022-09-02 15:44:50.154 hazelworker[65352] Received error while processing file /Users/TIMOTHY KRUPNIK 1/Downloads: Error Domain=NSCocoaErrorDomain Code=257 "The file “Downloads” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///Users/TIMOTHY%20KRUPNIK%201/Downloads, NSFilePath=/Users/TIMOTHY KRUPNIK 1/Downloads, NSUnderlyingError=0x6000017f5aa0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
2022-09-02 15:44:50.154 hazelworker[65352] Done processing folder Downloads
timkrupnik@gmail.com
 
Posts: 7
Joined: Mon Aug 29, 2022 10:31 pm

Re: How do change date formats? Fri Sep 02, 2022 5:58 am • by timkrupnik@gmail.com
I managed to fix this. Now working!!
timkrupnik@gmail.com
 
Posts: 7
Joined: Mon Aug 29, 2022 10:31 pm


Return to Support