i'm building page makes use of jquery datepicker. datepicker needs set not itself, function. function being called parameter date string in following format:
mon jul 15 12:16:19 utc+0200 2013
now need change format of date string localized date in form:
15.07.2013 12:16
how can change format , set datepickers current value? tried using var newdate = new date(date.parse(mydatestring));
gives me this:
thu jan 1 01:00:00 utc+0100 1970
any idea how can change format without parsing out correct datetime components manually? help!
you can check out options @ http://jqueryui.com/datepicker/#date-formats , click view source link on page see how done.
Comments
Post a Comment