title: how do I change format of Date using javascript?
body: <p>I want to display date as 18-03-2016 using javascript datepicker.If I didnot mention any format it is displaying as 03-18-2016.How to display like 18-03-2016.<a href="http://i.stack.imgur.com/ifSzf.png" rel="nofollow">this is sample code</a> </p>