Jump to content

Recommended Posts

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...