oleg Posted March 21, 2006 Share Posted March 21, 2006 $DATE = "22/3/2006"$NOWDATE = _NowDate()IF $DATE <= $NOWDATE ThenMsgBox(0, "", "EXPIRED")ElseMsgBox(0, "", "NOT EXPIRED")EndIfWould this work 100% correctly ? There is a hex ( 31303030303030 ) reasons i love AutoIt ! Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 21, 2006 Moderators Share Posted March 21, 2006 Would this work 100% correctly ? well my date comes out 3/21/06 for _NowDate()... So 100%... No. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
oleg Posted March 21, 2006 Author Share Posted March 21, 2006 well my date comes out 3/21/06 for _NowDate()... So 100%... No. Any idea how to compare date easily ? There is a hex ( 31303030303030 ) reasons i love AutoIt ! Link to comment Share on other sites More sharing options...
Developers Jos Posted March 21, 2006 Developers Share Posted March 21, 2006 (edited) you need to work with a YYYY/MM/DD format like _NowCalcDate(). Edited March 21, 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...
oleg Posted March 21, 2006 Author Share Posted March 21, 2006 you need to work with a YYYY/MM/DD format like _NowCalcDate().Yeah this look better but really can i directly compare the date this way ? There is a hex ( 31303030303030 ) reasons i love AutoIt ! 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