Define List of Dates

Hello. I am Trying to create a list of holidays in Uipath. The variable is holiday_list and the variable type is System.Collections.Generic.List<System.DateTime>.

I have started with this:
holiday_list = new List(of DateTime) from {}

But I dont know in what format I can put the dates inside the brackets {}

Appreciate some help
Best Regards
Pedro

Hi @Pedro_Tavares

See this one:

new List(of DateTime) from {new Datetime(2018,12,30)}

And more info here:
https://www.dotnetperls.com/datetime-vbnet
and here:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.