I have a grid with a date column. I use the rowEditDialog. When the dialog closes, I get the values and save them to the database.
I use ui.Value[].
Instead of getting a date. I get some strange string.
Here is the code.
{ columnKey: "MyDate", visible: true, readOnly: false, required: true, editorType: "datepicker", validation: false, editorOptions: { dateDisplayFormat: "date" }, }
The ui.Value["MyDate"] is
Mon Mar 14 2005 00:00:00 GMT-0500 (Eastern Standard Time) {}
That is the correct date but why is not coming back as '3/14/2005'
Please I really need to get this resolved. I cannot even parse the date in that format as I get 11122039 returned when I try Date.parse(). Any ideas?