Sourceforges JSON-lib (http://json-lib.sourceforge.net) produces a JSON date format like this:
{
"date":10,
"day":5,
"hours":0,
"minutes":0,
"month":5,
"nanos":0,
"seconds":0,
"time":1307660400000,
"timezoneOffset":-60,
"year":111 //this is 2011
}
Is there an easy way to convert this into a Javascript date object or should I just go through and set all the variables on the date object manually?
I've searched all over to find this with no luck! (apologies if the answer is lying around somewhere, I just can't seem to find it)