I want to remove saturday and sunday from the 1 month

Unfortunately it not in detailed mentioned which exact input / Datatype is to handle and what exact output Datatype is targeted

When it is about generations we can use the following approach:
grafik

and modifying it e.g. by dynamizing it with variables an/or shifting it to the Query syntax

Variables:
startDate | DateTime = #08/27/2025#
length | int32 = 16

Generation (output String Array)
arrFilteredDates =

(From i in Enumerable.Range(0,16)
Let d = startDate.AddDays(i)
Where Not {0,6}.contains(d.DayOfWeek)
Select r = d.ToString("dd-MM-yyyy")).toArray

About LINQ also have a look here:
[HowTo] LINQ (VB.Net) Learning Catalogue - Help / Something Else - UiPath Community Forum