Jump to content

Compare Dates


oleg
 Share

Recommended Posts

$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 !

Link to comment
Share on other sites

  • Moderators

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

  • Developers

you need to work with a YYYY/MM/DD format like _NowCalcDate().

:)

Edited 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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...