I am creating a json array with dates in there.
$result[] = array('startDate' => date("D M j G:i:s T Y"),
'endDate' => date("D M j G:i:s T Y"),
'title' => $event->title,
'description'=>$event->summary,
'priority'=>2);
The result i get is:
{
startDate: "Wed Nov 21 0:55:44 UTC 2012",
endDate: "Wed Nov 21 0:55:44 UTC 2012",
title: "title",
description: "desc",
priority: 2
}
But i dont want the date to be quoted as string, what i need is this:
{
startDate: Wed Nov 21 0:55:44 UTC 2012,
endDate: Wed Nov 21 0:55:44 UTC 2012,
title: "title",
description: "desc",
priority: 2
}
So is there a way that the date to not be treated as a string?