Created
February 1, 2018 14:19
-
-
Save jasp402/8571a5c18f9a41386c3bcde2a6fec4d1 to your computer and use it in GitHub Desktop.
AutoIT - Día anterior
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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