Jump to content

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
EndIf

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

any suggestions?

thanx

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