how to compare date which is given by user to date in javascript..?
<p>In my web-site I am getting  a date from user which in format like "dd-mm-yyyy",now I want to get the date which is 7-day before of that user's date.
I am able to get the current date in format "dd-mm-yyyy" but how would  I know the date which is one week before user's date in javascript?</p>
