Page 2 of 2

Changing date format

Posted: Wed Jul 24, 2013 8:45 pm
by Maryna Brodina

Hi,
1) do not map eventDate to Date format;
2) do not put datePicker inside the Grid, you can place it out of Grid and make invisible;
3) map eventDate to text parameter of label event_Date;
4) In mapping add the following code:
codereturn $.datepicker.formatDate( 'D, M d yy', $.datepicker.parseDate('yy-mm-dd', value ) ) ;/code


Changing date format

Posted: Wed Jul 24, 2013 11:09 pm
by The Herb Keeper

thank you so much this works perfectly!!


Changing date format

Posted: Sun Jan 26, 2014 10:47 am
by Tom6106181

Or you can simply use this:
https://github.com/phstc/jquery-dateF...

and do a:
codereturn $.format.date(value, "dd MMMM, yyyy");/code

in mapping.