Jump to content
Sign in to follow this  
speedy6

DateDiff

Recommended Posts

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

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

Don't use _Now()

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

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

×
×
  • Create New...