I am on MVC.
In my model i got a variable Datetime
In my view I am trying to give this a format when the page loads.
Control
@Html.TextBoxFor(m => m.RequestedLaunchDate, new { @class = "dateselector", @style = "float:left;" })
my JS is like
var now = new Date();//Today's date
now.format("dd/MM/yyyy");
$(".dateselector").datepicker("setDate", now);
But still when the page loads i get the display as
18/03/2014 00:00:00
Why ?
What did I do wrong ?