Sign in to follow this  
Followers 0
gempie

Need help setting date

5 posts in this topic

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

Share this post


Link to post
Share on other sites



Try '_DateAdd()' from BETA.

Share this post


Link to post
Share on other sites

It's also in the release

You're right, thanks for correction.

Share this post


Link to post
Share on other sites

Thanx guys, u helped me out!

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  
Followers 0