title: Convert date to end of day
body: <p>I get time in milliseconds from the server. I convert it to Date and get - 
  Mon Jul 22 2013 11:16:01 GMT+0200 (W. Europe Daylight Time) as the date in the record.</p>
  
  <p>I want to separate out data of Monday, Tuesday etc into arrays. I am thinking of converting this date to Mon Jul 22 2013 23:59:59 GMT+0200 (W. Europe Daylight Time) and then filter out the records.</p>
  
  <p>How can i change the date to the required end of the day time? or is there an easier way to do this ?</p>