Search the Community
Showing results for tags 'date difference'.
This is an easy way to get the number of days between today and any future date without having to acount for Hours, Minutes, and Seconds. #include <Date.au3> Func ShowDays($FutureDate) $iDaysDiff = _DateDiff('D', _NowCalcDate(), $FutureDate) If $iDaysDiff < 1 Then Return 0 ;Insure only positive return Return $iDaysDiff EndFunc ;==GoPR MsgBox(0, '', ShowDays("2017/07/31")) I use it to know how many days till I go on my next vacation. Maybe one of you can find a use for it.
Hello all, How to calculate the nearest Sunday? 2012/12/30 (Previous Sunday)2013/01/03(Today)2013/01/06(Coming Sunday)Here considering today's date(2013/01/03) the nearest Sunday is coming Sunday(2013/01/06) How to achieve this using AutoIt? any function close to this? Thanks