title: convert "m.d.yyyy" to "yyyy-mm-dd" using javascript
body: <p>How can i convert a string of format "d.m.yyyy" to another format say "yyyy-mm-dd" using javascipt?
  I have tried using new Date('9.5.1989').but its not working.</p>