Day of week for a specific date

Discuss RoboTask here
Post Reply
jpch
Posts: 6
Joined: Wed Apr 10, 2019 7:22 pm

Day of week for a specific date

Post 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
Oleg
Site Admin
Posts: 3241
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Day of week for a specific date

Post by Oleg »

use the expression {DayOfWeek(01.01.2010)}
Specify necessary date in you current system format
Oleg Yershov
jpch
Posts: 6
Joined: Wed Apr 10, 2019 7:22 pm

Re: Day of week for a specific date

Post 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
Attachments
Robotask DayOfWeek.png
Robotask DayOfWeek.png (23.01 KiB) Viewed 166 times
Oleg
Site Admin
Posts: 3241
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Day of week for a specific date

Post 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
Different_symbols.png (27.49 KiB) Viewed 162 times
So the action can not recognize your string
Oleg Yershov
Post Reply