Jump to content
Sign in to follow this  
speedy6

DateDiff

Recommended Posts

speedy6

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
Valuater

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
speedy6

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
AutoChris

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
speedy6

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  

×