Sign in to follow this  
Followers 0
speedy6

DateDiff

6 posts in this topic

When I do this, I still got 0. What is wrong?

I wont the days between 2 dates.

$iDateCalc = _DateDiff('D',"28/10/2006 15:54:25","30/10/2006 15:54:25")

MsgBox (4096,"",$iDateCalc)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

year/month/day

#include <Date.au3>

$iDateCalc = _DateDiff('D',"2006/10/28 15:54:25","2006/10/30 15:54:25")
MsgBox (4096,"",$iDateCalc)

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

year/month/day

#include <Date.au3>

$iDateCalc = _DateDiff('D',"2006/10/28 15:54:25","2006/10/30 15:54:25")
MsgBox (4096,"",$iDateCalc)

8)

and how do I reform then the date beacause:

$iDateCalc = _DateDiff('D',"2006/10/28 15:54:25",_now())

doesn't work...

thanks

Share this post


Link to post
Share on other sites

and how do I reform then the date beacause:

$iDateCalc = _DateDiff('D',"2006/10/28 15:54:25",_now())

doesn't work...

thanks

Don't use _Now()

Use @YEAR & "/" & @MON & "/" & @MDAY

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Don't use _Now()

Use @YEAR & "/" & @MON & "/" & @MDAY

I say use _NowCalc() or _NowCalcDate() ... :whistle: Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I say use _NowCalc() or _NowCalcDate() ... :whistle:

ok thanks

Share this post


Link to post
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
Sign in to follow this  
Followers 0