add basic date support

This commit is contained in:
Misko Hevery 2010-07-15 14:35:04 -07:00
parent 7cef4358ae
commit cc097867f4

View file

@ -35,6 +35,10 @@ foreach({
},
'date': function(date) {
if (date instanceof Date)
return date.toLocaleDateString();
else
return date;
},
'json': function(object) {