Jump to content

How i can compare two dates?


Recommended Posts

Hi to all

My problem is how can I compare two dates
if I have the following code:

$date = _NowDate()
$dateend = "10/12/2016"
if $date > $dateend Then
Exit
EndIf

It does not work well
I guess it's because I'm comparing two strings not realy two dates.
My idea would break the date into three numbers year, month and day and go comparing data as numbers.
is this correct...?

Thank's to all

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

×
×
  • Create New...