F(ile) + utility = futility
Utilities for working with files in PowerShell
Install-Module -Name futility
(aka oldest
)
Accepts pipeline input and finds the oldest modified time. The format string defaults to u
, but can be overridden by -DateFormatString
(-f
)
gci | oldest -f 'yyyy-MM-dd'
2021-08-15
(aka newest
)
Accepts pipeline input and finds the newest modified time. The format string defaults to u
, but can be overridden by -DateFormatString
(-f
)
gci | newest -f 'yyyy-MM-dd'
2021-08-17