Jump to content
Sign in to follow this  

Need help setting date

Recommended Posts

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

The problem is that if it is the 30 or 31 it changes the date to 32 or 33.

any suggestions?


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  

  • Create New...