Modify

Opened 17 years ago

Closed 17 years ago

#1065 closed Bug (No Bug)

_DateDiff showing 0 days

Reported by: dash007 Owned by:
Milestone: Component: AutoIt
Version: 3.3.0.0 Severity: None
Keywords: Cc:

Description

Hi,

Below code shows that the difference in days between the 2 dates is 0.If I change the date to 2009/06/30, then it works fine and shows 11 days. It looks like its to do with '31'.

#include <Date.au3>

$iDateCalc = _DateDiff( 'D',"2009/06/31",_NowCalcDate())
MsgBox( 4096, "", $iDateCalc )

Attachments (0)

Change History (2)

in reply to:  description comment:1 by dash007, 17 years ago

Replying to dash007:

Sorry my mistake. There is no 31st June as a date.Can this post please be closed. Thanks.

Hi,

Below code shows that the difference in days between the 2 dates is 0.If I change the date to 2009/06/30, then it works fine and shows 11 days. It looks like its to do with '31'.

#include <Date.au3>

$iDateCalc = _DateDiff( 'D',"2009/06/31",_NowCalcDate())
MsgBox( 4096, "", $iDateCalc )

comment:2 by Gary, 17 years ago

Resolution: No Bug
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.