Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Date.au3>
- Local $iDaysToCalculate = 100
- ; Convert day to date
- Local $iYear, $iMonth, $iDay
- _DayValueToDate(_DateToDayValue(@YEAR, 1, 1) + $iDaysToCalculate, $iYear, $iMonth, $iDay)
- ConsoleWrite($iYear & "/" & $iMonth & "/" & $iDay & @CRLF)
- ; Get the months
- Local $iCalculatedMonth = _DateDiff("M", @YEAR & "/01/01", $iYear & "/" & $iMonth & "/" & $iDay)
- ConsoleWrite($iCalculatedMonth & " months." & @CRLF)
Advertisement
Add Comment
Please, Sign In to add comment