Is it possible to display weekdays validation using A360 BOT., I mean in a calendar take one date for example take date 21-01-2023 - Saturday, using this date how can we validate 21-01-2023 is Saturday or Not? Please suggest logic.
https://botstore.automationanywhere.com/bot/what-day-of-the-week
Tasks
- Verifies that the value in the clipboard is a date
- Task runs a script to calculate the day of the week from the date
- Once the task is completed, sets the day of the week to the clipboard
Actions:
(1) Run 'What day of the week' Bot from your Bot using the 'Run task' command.
(2) However, please set the date on the clipboard in the following format in advance. Year.Month.Day
Example: 2020.03.08 or 2020.3.08 or 2020.03.8 or 2020.3.8
Outputs:
(1) Calculates the day of the week from the value set in the clipboard.
(2) Set the result on the clipboard.
(3) The result is returned as a numerical value.
・ Sunday: 1
・ Monday: 2
・ Tuesday: 3
・ Wednesday: 4
・ Thursday: 5
・ Friday: 6
・ Saturday: 7
(4) If an error occurs, sets 0 to the clipboard.
Use cases:
(1) It is effective to use when judging processing by day of the week as Automation Anywhere Enterprise V11.x does not have a function for calculating the day of the week from a date.
(2) Can be used to check the first business day or the last business day in a month.
(3) Holidays are not supported as the public holidays vary from country to country.
Other:
・ Supports leap years.
・ Works with any date from January 1, 1900 till December 31, 2100.
Thankyou so much Ramesh. Actually i don’t have AA E11, I am using A360. Is it possible to migrate this from V11 to A360.
Thankyou Sumith., I tried this before you said, but it didn't came. Now I got it.
And need one favour Sumit.
I need to automate calendar and using that I need to validate date and weekday like this date is sunday, monday laike that..
Please help me in Logic to implement in A360. Not V11. Without scripting.
Try to use any of the follow approach described in the below link to get the weekday.
https://pynative.com/python-get-the-day-of-week/
Without scripting will be necessary implement an algorithm like this;:
https://www.almanac.com/how-find-day-week
HTH
REgards
https://botstore.automationanywhere.com/bot/what-day-of-the-week
Tasks
- Verifies that the value in the clipboard is a date
- Task runs a script to calculate the day of the week from the date
- Once the task is completed, sets the day of the week to the clipboard
Actions:
(1) Run 'What day of the week' Bot from your Bot using the 'Run task' command.
(2) However, please set the date on the clipboard in the following format in advance. Year.Month.Day
Example: 2020.03.08 or 2020.3.08 or 2020.03.8 or 2020.3.8
Outputs:
(1) Calculates the day of the week from the value set in the clipboard.
(2) Set the result on the clipboard.
(3) The result is returned as a numerical value.
・ Sunday: 1
・ Monday: 2
・ Tuesday: 3
・ Wednesday: 4
・ Thursday: 5
・ Friday: 6
・ Saturday: 7
(4) If an error occurs, sets 0 to the clipboard.
Use cases:
(1) It is effective to use when judging processing by day of the week as Automation Anywhere Enterprise V11.x does not have a function for calculating the day of the week from a date.
(2) Can be used to check the first business day or the last business day in a month.
(3) Holidays are not supported as the public holidays vary from country to country.
Other:
・ Supports leap years.
・ Works with any date from January 1, 1900 till December 31, 2100.
Thankyou so much for the solution
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.