Page 1 of 1

DAY TIME CALCULATION: LAST DAY OF PREVIOUS MONTH

Posted: Jun 9th, ’25, 07:01
by Mr.Aky
Hello,
How can I send last day of previous month in a Shortcut ?

In date and time I do not find a way to send last day of previous month.
I can send first day of previous month with this formatting 01/MM/yyyy

Re: DAY TIME CALCULATION: LAST DAY OF PREVIOUS MONTH

Posted: Jun 9th, ’25, 20:19
by Marko

Code: Select all

TDate := A_YYYY A_MM "01" ; Start Date of Current Month
TDate += -1, D            ; End Date of Previous Month 
FormatTime, fileDate, %TDate%, dd.MM.yyyy
Send, %fileDate%

Re: DAY TIME CALCULATION: LAST DAY OF PREVIOUS MONTH

Posted: Jun 11th, ’25, 05:46
by Mr.Aky
Thanks,
it works