I’m trying to create a list of dates with the format MMM-dd-yyyy-EEE, which should spit out Jul-06-2016-Wed.
The idea is to end up with a list of dates thus: Jan-1-2017-Sun Jan-2-2017-Mon Jan-3-2017-Tue ... Dec-29-2017-Fri Dec-30-2017-Sat Dec-31-2017-Sun
However, I’d like to start on 01/01/2017.
I was thinking of using the time plus feature to keep adding days ie: %ICUDateTimePlus%1%Days%MMM-dd-yyyy-EEE% %ICUDateTimePlus%2%Days%MMM-dd-yyyy-EEE% %ICUDateTimePlus%3%Days%MMM-dd-yyyy-EEE% ...
What I’m struggling to do is set the starting date to 01/01/2017.
I’ve set a variable to text called "YearStart" using "%ICUDateTimeFor%TIME(2017, 1, 1,12,0,0) %MMM-dd-yyyy-EEE%"
I can’t seem to figure out how to use this with time plus.
Any ideas?
Oh, if I’m going at this the wrong way please lead me in the right direction, I’m new to this.
I’m missing the ability to either calculate how many days from today to 01/01/2017 and add that to the ICUDateTimePlus or set the ICUDateTimePlus to 01/01/2017.
I was just reading through when you posted, many thanks.
Still doesn’t solve my issue.
I can hard code the dates, but then I have to do all of them by hand which defeats the object of KM.
I really need to be able to set the date to a specific date and then be able to apply a calculation that will add one day and print the result and then repeat so I can print from 01/01/2017 to 31/12/2017.
I use this to create a calendar in Workflowy. I tweaked it so that I also had a day of the week separator as each day may be used multiple times in Workflowy for different events, meetings etc. So the final KM looked thus:
I know you can also do date calculations in a shell script, using the “date” command. But I don’t know enough about it to do what you’re specifically asking for.
I standardized the variable names a bit, so they are grouped together in the variables inventory. You can also enable the Cleanup group at the end, if you prefer.
Thanks, but it was @JMichaelTX who provided you with the important information.