Jump to content

Run a script based on Date


lyledg
 Share

Recommended Posts

Should work if I didn't make a mistake:

$daysPerMonth = StringSplit("31,28,31,30,31,30,31,31,30,31,30,31", "")
If Mod(@YEAR,400)=0 Or (Mod(@YEAR,4)=0 And Mod(@YEAR,100)<>0) Then $daysPerMonth[2] = "32";leap year
If $daysPerMonth[@MON] = @MDAY Then MsgBox(4096,"Info","Last Day of month.... delete file....")

Otherwise, look at the JdeB's excellent collection of Date UDF's which are in the "C:\Program Files\AutoIt3\Include\Date.au3" file....

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

  • Developers

And they didn't think to include me in their includes.  :idea:

<{POST_SNAPBACK}>

Did you ever bother to read the UDF post at all where you replied to ? :D

THAT SUX!!! 

OH no. What's happening to me.

:lmao:  :idea:  :idiot:  :wacko:  :lol:  :D  :D  :D

I AM EVIL!!!!

;) Wonder why you're not treated seriously ???

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

And they didn't think to include me in their includes.  :D

THAT SUX!!! 

OH no. What's happening to me.

:idea:  :D  :idiot:  :idea:  :lol:  :D  :D  ;)

I AM EVIL!!!!

<{POST_SNAPBACK}>

Didn't one of your includes delete someones registry recently?

We have enough youth. How about a fountain of SMART?

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...