Jump to content
Sign in to follow this  
Phaser

Date question

Recommended Posts

Phaser

Hi everyone

I have been testing dates in a script I made, currently I am using this

If @YEAR >= "2009" And @MON >= "11" Then

And changing the @MON >= "11" to "10" gives me the msgbox I expect, I would like to also add @MDAY like this

If @YEAR >= "2009" And @MON >= "11" And @MDAY >= "01" Then

so its more accurate but it doesn't work with @MDAY added to it? what am I missing here?

Share this post


Link to post
Share on other sites
Phaser

Thanks guys, the help file states @MDAY 01 to 31 so I didn't even bother trying 1 instead of 01, got the point about the strings, thanks

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.