I need a logic for the date

Hi
I need some logic for example: if my bot is running on friday night after 12 that will be consider as Saturday… but i want friday date only… beocz sat and sunday is holiday…

Hi @katta_nikhil
Try this

Get Current Date Time:
- Output: currentDateTime (DateTime variable)

If:
- Condition: currentDateTime.DayOfWeek = DayOfWeek.Saturday Or currentDateTime.DayOfWeek = DayOfWeek.Sunday
- Then:
    Assign:
    - fridayDate = currentDateTime.AddDays(-1)

can u send me the workflow please …it will be more helpful to me

Hi @katta_nikhil

First, take the current date & determine whether it’s a weekend or not:

image

Then proceed with the Saturday or Sunday determination & get the Friday date:

image

image

image

Hope this helps,
Best Regards.

can u share that xaml please

Hi @katta_nikhil,
As I understand from your question you need your scrip to run only in Friday so all you need is to create Trigger using this Corn expression 0 0 * * FRI it will run job Friday @ 12:00 AM.
Note:
If you need to change running times (First Zero represent Min and second Zero represent hours.

Please try and update us if you still face issue.