Jump to content

display all dates within months


idsanjeev
 Share

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...