fmtdonnk Posted May 22, 2018 Share Posted May 22, 2018 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 Link to comment Share on other sites More sharing options...
fmtdonnk Posted May 22, 2018 Author Share Posted May 22, 2018 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 Link to comment Share on other sites More sharing options...
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