gempie Posted July 17, 2006 Posted July 17, 2006 hi there, this is what i've got so far $day =@WDAY msgbox (48, "$day",$day) If $day = 6 Then MsgBox(48, "Today is","Friday, changing date to Monday",2) $data =@MDAY+3&"-"&@MON&"-"&@YEAR ElseIf $day <> 6 Then $data =@MDAY+1&"-"&@MON&"-"&@YEAR EndIf The problem is that if it is the 30 or 31 it changes the date to 32 or 33. any suggestions? thanx
GaryFrost Posted July 17, 2006 Posted July 17, 2006 Try '_DateAdd()' from BETA.It's also in the release SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Briegel Posted July 17, 2006 Posted July 17, 2006 It's also in the releaseYou're right, thanks for correction.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now