Size: a a a

2021 July 20

M

Mahi in Uipath RPA
I will get hldy list in excel
источник

VG

Vighnesh Gadekar in Uipath RPA
https: //date. nager. at/Api

Remove space frm above URL
источник

VG

Vighnesh Gadekar in Uipath RPA
No its get API
источник

VG

Vighnesh Gadekar in Uipath RPA
1st ask BA/sme/cleint is it ok to involve 3rd party API
источник

M

Mahi in Uipath RPA
Noo
источник

M

Mahi in Uipath RPA
No they will only send list of hldys and according to that I need to check from that list
источник

M

Mahi in Uipath RPA
Need use if condition s but iam not getting clarity how I can provide conditions
источник

M

Mahi in Uipath RPA
From where I need to start
источник

JJ

JM Jante in Uipath RPA
so you already have a pre defined list of holidays for a particular year? this excel list already has days labelled(monday - friday)? or this will be part of the logic build?
источник

R

Ravi in Uipath RPA
Do it like this first assign your date to a variable
источник

R

Ravi in Uipath RPA
And then in a while loop use lookup datatable and after lookup datatable do this manipulation AddDays(-1)
источник

VG

Vighnesh Gadekar in Uipath RPA
As per my understanding, he is having list of dates that need to be checked whether it falls under holiday or not
источник

R

Ravi in Uipath RPA
And put condition of while Loop
Index = -1
источник

R

Ravi in Uipath RPA
Where index is the output of your lookup datatable
источник

R

Ravi in Uipath RPA
Then when you exit the while loop you will have your required date
источник

R

Ravi in Uipath RPA
Day you want to extract
источник

M

Mahi in Uipath RPA
Yes I have hldy predefined list and no there is no labelled names there
источник

VG

Vighnesh Gadekar in Uipath RPA
Means you want to find which day it is using that date value right?

If yes then you can use this
DateTime.Parse(ur date value as mm/dd/yyyy).ToString(“dddd”)

It will give you Sunday, Monday, Tues.... So on..
источник

VG

Vighnesh Gadekar in Uipath RPA
So you can loop through list of date here and get it's days then implement ur further logic
источник

M

Mahi in Uipath RPA
Not exactly
источник