Jump to content
fmtdonnk

date input

Recommended Posts

fmtdonnk

Hello

 

I am very very new user, I am searching how to 

input a date 

insert a date in a field and repeat  using loop for next 5 days.

Can some one help me to write this script.

 

as least how I define a date.

 

I mean how I start and define 

My_Date=("2018/5/22")

 

thanks

 

Franck

 

Share this post


Link to post
Share on other sites
fmtdonnk

Hello

 

thanks I found it

 

$sDate ="2018/05/22"

For $x = 1 To 5
Local $sNewDate = _DateAdd('d', $x, $sDate)
MsgBox($MB_SYSTEMMODAL, "", "Today + 5 days: " & $sNewDate)


Next

 

 

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

×