Adding Days to a Date

Discussion, questions and support.
Post Reply
vrod5454
Posts: 20
Joined: Apr 18th, ’18, 02:13

Post by vrod5454 » Aug 16th, ’18, 14:25

Hi,

Is there a way to add days to a date? So for example, if it is Thursday then "%A_DDDD% + 1" would print Friday. This comes in useful when starting to coordinate meetings via email. If it is Thursday one could send "Do have availability Friday afternoon?" with "Do have availability %A_DDDD% + 1 afternoon?"

If you could add the option/flag of calculating only workdays (M-F) - then things would get interesting. The above example would not be helpful if it was Friday as "%A_DDDD% + 1" = Saturday (a non work day).

Thanks,
Victor
User avatar
Marko
Posts: 1718
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Aug 17th, ’18, 13:55

We plan to introduce such feature in one of the future releases. Until then you can use a simple script. See the examples here:
viewtopic.php?f=4&t=485&p=1924&hilit=Wo ... date#p1924
vrod5454
Posts: 20
Joined: Apr 18th, ’18, 02:13

Post by vrod5454 » Aug 24th, ’18, 16:37

Hi Marko,

Thank you for the link. I was able to make the date command script work in a send via

Code: Select all

%INSERT_.mydate%.
To make the command more flexible... would it be possible to send the command the parameter "days" - like a function{} For example

Code: Select all

%INSERT_.mydate, 1 %
would be plus 1 day- etc. I understand that the date command script would need to be revised to accept the parameter.

Thanks,
Victor
Post Reply