Avatar of CLR Benjamin
CLR Benjamin
Flag for France

asked on 

Compare date into a variable

Hi,

I have one variable that reads some veeam jobs.

I want to compare the "endtime" attribute between the jobs :

$seshlistBKID | fl endtime


EndTime : 11/04/2019 07:35:07

EndTime : 10/04/2019 14:58:19

EndTime : 10/04/2019 15:14:52

Open in new window


I want the most recent one and send it to a variable.

I don't know how to do it, I think about export-csv but this is to much for something maybe simple.

Thanks you!
Powershell

Avatar of undefined
Last Comment
CLR Benjamin

8/22/2022 - Mon