1//Javascript
2var d = new date();
3var iso_date_string = d.toISOString();
4// produces "2014-12-15T19:42:27.100Z"
5var locale_date_string = d.toLocaleDateString();
6// produces "12/15/2014"
7
8//PHP
9$date = date( "Y-m-d H:i:s", strtotime("2014-12-15T19:42:27.100Z") );
10// produces "2014-12-15 20:42:27"
11$date = date( "Y-m-d", strtotime("12/15/2014") );
12// 2014-12-15
13