Jump to content

display all dates within months


idsanjeev

Recommended Posts

In javascript, you can do something like this:

<html><body><script type="text/javascript">var today = new Date();var start = new Date();start.setMonth(today.getMonth() - 1);while(start <= today){	document.write(start.toLocaleString());	document.write("<br />");	start.setDate(start.getDate() + 1);}</script></body></html>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...