Skip to content

Instantly share code, notes, and snippets.

@jasp402
Created February 1, 2018 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasp402/8571a5c18f9a41386c3bcde2a6fec4d1 to your computer and use it in GitHub Desktop.
Save jasp402/8571a5c18f9a41386c3bcde2a6fec4d1 to your computer and use it in GitHub Desktop.
AutoIT - Día anterior
#include <Date.au3>
Func uDateYesterday()
$yesterday = _DateAdd("d", -1, _NowCalcDate())
$arDate = StringSplit($yesterday, "/")
$sDate_New = $arDate[2] & "/" & $arDate[3] & "/" & $arDate[1]
;~ $sDate_New = $aDate[3] & " " & $aDate[2] & " " & StringRight($aDate[1],2)
;~ MsgBox(0, "Date", "Yesterday is "& $sDate_New)
Return $sDate_New
EndFunc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment