javascript function to convert date from mm/dd/yyyy to yyyymmdd
<p>In asp.net when am selecting date using calender control it displays in textbox as </p>

<blockquote>
  <p>mm/dd/yyyy (eg.5/19/2011)</p>
</blockquote>

<p>format but in my sql database it is stored as varchar datatype in </p>

<blockquote>
  <p>yyyymmdd(20110519)</p>
</blockquote>

<p>format without any separators '/' or '-'. </p>
