Return Yesterdays date Topic is solved
Posted: 21 Jun 2018, 11:20
Has anyone created an AHK script to return yesterday's date?
Thank you!
Thank you!
Let's help each other out
https://www.autohotkey.com/boards/
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=50991
Code: Select all
EnvAdd, Yesterday, -1, days
FormatTime, Yesterday, %Yesterday%, yyyyMMdd
MsgBox, %Yesterday%
Code: Select all
MsgBox % "Yesterdays date was : " getYesterDate()
getYesterDate(){
dt := A_Now
EnvAdd, dt, -1, Days
FormatTime, dt, % dt, MM/dd/yy
return dt
}