Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v1) • Minus date not working correctly

$
0
0
Hello,

I have the below script that takes 31 days off the current date. This works fine the first time, but the second time takes 62, third time 93 etc. How do I stop this??

CODE:

::.td3::
DateMinus31 += -31,days
FormatTime, FormattedDate1, %DateMinus31%, dd-MM-yyyy
FormatTime, CurrentDateTime,, dd-MM-yyyy
SendInput, %FormattedDate1%{tab}%CurrentDateTime%{Enter}
Return

Statistics: Posted by rdonald18 — Today, 20:03



Viewing all articles
Browse latest Browse all 579

Trending Articles