I'm trying to make a script to return the next 5 days for example today is 2006-04-24 and it would create variables with the values of 2006-04-25, 2006-04-26, 2006-04-27, 2006-04-28, 2006-04-29. I thought and using getdate function and add +1~5 to day value but I realized it would bug after the day gets over 30. Any suggestions?
StrikeFreedom 0
Newbie Poster
Recommended Answers
Jump to PostLook in the manual for checkdate();
Maybe this will help you.
Jump to PostI'm trying to make a script to return the next 5 days for example today is 2006-04-24 and it would create variables with the values of 2006-04-25, 2006-04-26, 2006-04-27, 2006-04-28, 2006-04-29. I thought and using getdate function and add +1~5 to day value but I realized it would bug after …
All 6 Replies
Banderson 29
Junior Poster in Training
leelee 11
Junior Poster in Training
JD.ua 0
Newbie Poster
leelee 11
Junior Poster in Training
JD.ua 0
Newbie Poster
leelee 11
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.