SyntaxFix
Write A Post
Hire A Developer
Questions
I see this topic, but in my case I was looking for a way to improve the format. Using UFormat and adding -1 day
(get-date (get-date).addDays(-1) -UFormat "%Y%m%d-%H%M")