speedy6 Posted October 30, 2006 Share Posted October 30, 2006 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) Link to comment Share on other sites More sharing options...
Valuater Posted October 30, 2006 Share Posted October 30, 2006 (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 October 30, 2006 by Valuater Link to comment Share on other sites More sharing options...
speedy6 Posted October 31, 2006 Author Share Posted October 31, 2006 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 Link to comment Share on other sites More sharing options...
AutoChris Posted October 31, 2006 Share Posted October 31, 2006 and how do I reform then the date beacause:$iDateCalc = _DateDiff('D',"2006/10/28 15:54:25",_now())doesn't work...thanksDon't use _Now()Use @YEAR & "/" & @MON & "/" & @MDAY Link to comment Share on other sites More sharing options...
Developers Jos Posted October 31, 2006 Developers Share Posted October 31, 2006 (edited) Don't use _Now()Use @YEAR & "/" & @MON & "/" & @MDAYI say use _NowCalc() or _NowCalcDate() ... Edited October 31, 2006 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
speedy6 Posted November 2, 2006 Author Share Posted November 2, 2006 I say use _NowCalc() or _NowCalcDate() ... ok thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now