Page 1 of 1

Calculate a User-Date in User Defined Tool

Posted: Thu Aug 08, 2019 1:31 pm
by OLLI_S
Hello,

I have created a User Defined Tool that creates a new email in Outlook and fills all fields of the mail (To, CC, Subject, Body) with data stored in the ToDoList.

In the command I also have a date prompt, that asks for a date and pastes it in the subject:

Code: Select all

$(userdate, var_date1, "Date prompt")
I want to use the date in the mail text twice:
1) the date that the user has selected in the date prompt
2) the date that the user has selected in the date prompt + 1 day

Reason:
1) is the date when we expect feedback from the project
2) is the date when we send the report (one day after the feedback)

Best regards

OLLI

Re: Calculate a User-Date in User Defined Tool

Posted: Fri Aug 09, 2019 6:10 am
by abstr
Hmm, I'll look into it.

Re: Calculate a User-Date in User Defined Tool

Posted: Fri Aug 09, 2019 6:13 am
by OLLI_S
Thank you!

Re: Calculate a User-Date in User Defined Tool

Posted: Fri Aug 09, 2019 11:27 am
by OLLI_S
I switched to PowerShell and here I can calculate the date:

Code: Select all

[datetime]::Today.Adddays(1)
So in my eyes the issue is solved.
Should I mark it a solved?