Page 1 of 1
Day of week for a specific date
Posted: Fri Oct 17, 2025 10:26 pm
by jpch
Hi,
Is it possible to have Robotask find out the day of the week for a specific date (Not the current date) stored in a variable?
{DayOfWeek} and {DayOfWeekNo} only shows the day of the week for the current date.
Thank you
JP
Re: Day of week for a specific date
Posted: Sat Oct 18, 2025 6:57 am
by Oleg
use the expression {DayOfWeek(01.01.2010)}
Specify necessary date in you current system format
Re: Day of week for a specific date
Posted: Mon Oct 20, 2025 7:02 pm
by jpch
Hi Oleg,
Thank you for your reply.
The suggestion still doesn't work. {DayOfWeek(2025-10-16)} still gives me today's day of week.
See attached image.
Any ideas of a workaround for this?
Thank you
JP
Re: Day of week for a specific date
Posted: Mon Oct 20, 2025 7:43 pm
by Oleg
You need enter the date in you
current system date format
thy these strings
Code: Select all
{Date}
{DayOfWeek}
{DayOfWeek({FormatToDateTime(2025-10-16,yyyy-mm-dd)})}
Also I'm afraid that hyphens in the system format and in the action parameters are different symbols (see screenshot).

- Different_symbols.png (27.49 KiB) Viewed 167 times
So the action can not recognize your string