Modify

Opened 10 years ago

Closed 10 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)

comment:1 in reply to: ↑ description Changed 10 years ago by dash007

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 Changed 10 years ago by Gary

  • Resolution set to No Bug
  • Status changed from new to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.