title: Last day of month (no timestamp)
body: <p>I am trying to create two dynamic dates in html/javascript/jquery. I want the dates to be formatted like yyyy/mm/dd. The first date will return the last day of the previous month, and the second date will return the last day of the current month. Anyone know how to do this in the technologies listed above?</p>
  
  <p>I am 99.9999% positive I can accomplish this by making a call to a backend page using C#, but I want to see if there is a more efficient way to do this right in the DOM (is DOM the correct terminology?).</p>
  
  <p>From a previous question on SO, here is the code I am using now...</p>
  
  <pre><code>var d = new Date();
  document.write(new Date(d.getFullYear(), d.getMonth() + 1, 0, 23, 59, 59));
  </code></pre>