title: How to populate drop down list box with certain calendar range values in javascript
body: <p>I have 3 drop down list boxes, <code>year</code>, <code>month</code>, and <code>day</code>. </p>
  
  <p>I need to populate values for the last 1095 days from the current date. Currently I'm doing this by running a query in SQL with calendar system table. Is there a way to do it directly in javascript? </p>
  
  <p>The reason I went to SQL is I was not able to associate the 3 drop down boxes for 1095 days from today. For example, say today is Sept 6 2009. If I select 2009 for the <code>year</code>, then the <code>month</code> drop down should list from Sept, and the <code>day</code> drop down should list from 6.</p>
  
  <p>I need the user to have the flexibilty to choose any date from last 1095 days .so  First the user selects 2009 .only Then month drop down box should be populated .and it should only have months from september to decemenber .then after selecting month as september only 1 to 30 should be populated in day drop down box .I m doing this currently by using system date table in sql .</p>