Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Changing date format

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

The Herb Keeper
Posts: 0
Joined: Sat Jul 06, 2013 7:34 pm

Changing date format

thank you so much this works perfectly!!

Tom6106181
Posts: 0
Joined: Fri Aug 02, 2013 12:39 pm

Changing date format

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.

Return to “Issues”