get previous month name.lower() not number
I am trying to get the previous month name, not the number, currently the line below gives me the previous month as a number but I need it as the name and in lowercase.
(get-date).Month-1;
Thank you!
edit: Got my answer, thank you guys!
Posted Dec 5, 2017, 5:56 PM UTC · edited
Or alternatively, using your existing code:
EDIT: You can alternatively use this:
EDIT 2: There is also this method:
Seems like there isn't a short way to do it, unfortunately. If I were planning on calling this more than once I'd do something like this...
Thank you! I'll use the first line :)