Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Model date field problem

$
0
0
Does canJS perform automatic conversion of dates on models? I have JSON coming from server that contains the "created" property:
"created": "2013-08-13T09:04:18Z"

can.Model seems to convert this into function. I can access all properties directly (model.name, model.status, ...), but created only by model.attr('created') which renders in template as @@!!@@ but on console I get the correct value 2013-08-13T09:04:18Z.


Viewing all articles
Browse latest Browse all 3491

Trending Articles