Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

Enter one date and autocalculate dates for the week

$
0
0

I'm trying to figure out how to write the code that would let me autocalculate a series of dates based on a single input. It's been a while since I did any coding, and I was never all that good, so any pointers or suggestions with sample code are best.

 

I have a (rather large) form, and I need to have dates for each day of the week, one date per page (each date appears multiple times; I've got that covered already). I keep making mistakes when filling the dates in by hand, so I'd like to input Monday's date and have it fill in the dates for the rest of the week. Ideally, the visible output for each date would be in the format "Thursday, 9 July 2015", although any format that includes day-of-week as well as the month-day-year would be acceptable.

 

I'm really kinda stuck on this, and basically have no idea how to even start...


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>