Hybrid View
-
31 Jan 2012 11:11 PM #1
Answered: How can I parse DateTime to Date?
Answered: How can I parse DateTime to Date?
Using .NET platform, return a list of DateTime in JSON format such as:
Got a model with field in date format and found a function from the net saying that it could parse the datetime to date, but seems not working. Can anyone help? Thanks a lot.Code:{"d":["\/Date(1328112000000)\/","\/Date(1328198400000)\/","\/Date(1328284800000)\/"...
Code:Ext.regModel('BookingDate', { fields: [ {name:'Date', type:'date', convert : toDateFromJSON } ] });Code:function toDateFromJSON(v, record) { return Date.parseDate(v, "M$"); }
-
Best Answer Posted by Winnie Lam
I solved it. Thanks
-
1 Feb 2012 12:14 AM #2
I solved it. Thanks
-
2 Feb 2012 7:49 AM #3
You should probably mention how you solved it & Also mark the question as solved
-
3 May 2012 8:11 AM #4
Hi, please, could you tell us how do you resolve this?
I have the same problem, and when I try to read my date field in .net I have this:
Thanks in advance.Code:Thu May 03 2012 11:08:56 GMT-0500 (Hora est. Pacifico, Sudamerica)


Reply With Quote