Riya_Chugh
(Riya Chugh)
1
I’m working on an automation challenge where I have an array of dates representing different stages in a process.
To ensure everything runs smoothly, I need to find the start date (the earliest date) and the end date (the latest date) from this list.
Could you help guide me on the best way to approach this? Your suggestions would be really valuable in helping me streamline the workflow.
KalyanM
(Kalyan)
2
Hi @Riya_Chugh
Please uuse below ones
Min date = dateArray.Select(Function(d) DateTime.Parse(d)).ToArray().Min()
Max date = dateArray.Select(Function(d) DateTime.Parse(d)).ToArray().Max()
1 Like
@Riya_Chugh,
Welcome to the UiPath community!
' Assume your array is of type DateTime
dtmStartDate = dateArray.Min()
dtmEndDate = dateArray.Max()
system
(system)
Closed
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.