Sign in to follow this  
Followers 0
oleg

Compare Dates

5 posts in this topic

$DATE = "22/3/2006"

$NOWDATE = _NowDate()

IF $DATE <= $NOWDATE Then

MsgBox(0, "", "EXPIRED")

Else

MsgBox(0, "", "NOT EXPIRED")

EndIf

Would this work 100% correctly ? :)


There is a hex ( 31303030303030 ) reasons i love AutoIt !

Share this post


Link to post
Share on other sites



Would this work 100% correctly ? :)

well my date comes out 3/21/06 for _NowDate()... So 100%... No.

[center]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.[/center]

Share this post


Link to post
Share on other sites

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 !

Share this post


Link to post
Share on other sites

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 !

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