title: Given a date how to get Sunday & Saturday of that week
body: <p>I want to get the Sunday &amp; Saturday of the week from which a date is provided.
  I have access to the following functions only:</p>
  
  <ul>
  <li><code>getDate()</code> returns a number from 0-6 (0 being sunday)</li>
  <li><code>getDay()</code>  returns a number from 1-31</li>
  <li><code>getMonth()</code>  returns a number from 0-11</li>
  <li><code>getFullYear()</code>  returns the current year</li>
  </ul>
  
  <p>I am doing this on titanium.</p>