Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 138249

how can i get which day of week month starts on from for given input of month and year?

$
0
0

i have js code which stacks div's that are represanting days in month in a larger div that is actually a calendar. user can freely select month and year and i need to build calendar for that month.

for example: if this month is starting with saturday i need to first build 5 empty blocks and then start filling calendar with blocks that have number of day inside them. how can i calculate this number for given input of month and year?


Viewing all articles
Browse latest Browse all 138249

Trending Articles



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