I'm using DateTime to create Date objects and sending them to UI as JSON. How can I use that in JavaScript (Angular JS) and convert it back and forth.
Example: If I want to get the user update the time, I should be able to get the Date/Time from a form submission and send it back to the Server in json.
Here is my current DateTime json output that the client recives
"date": {
"year": 2013,
"era": 1,
"dayOfMonth": 3,
"dayOfWeek": 7,
"dayOfYear": 34,
"millisOfDay": 3660000,
"centuryOfEra": 20,
"yearOfCentury": 13,
"monthOfYear": 2,
"weekOfWeekyear": 5,
"millisOfSecond": 0,
"hourOfDay": 1,
"yearOfEra": 2013,
"weekyear": 2013,
"secondOfMinute": 0,
"secondOfDay": 3660,
"minuteOfHour": 1,
"minuteOfDay": 61,
"zone": {
"fixed": true,
"id": "UTC"
},
"millis": 1359853260000,
"chronology": {
"zone": {
"fixed": true,
"id": "UTC"
}
},
"beforeNow": true,
"afterNow": false,
"equalNow": false
}