On line 524: val.getTime() will error if val is not a Date object. I am pulling my data from JSON so the date is just a string. I guess there probably should be some logic to check if new Date() was successful in creating a Date object or not.

Submitted on 16 July 2010 at 22:25

On 16 July 2010 at 22:29 Zef Hemel commented:

So you initialize a property of type DATE by assigning a string to it, is that correct? Can’t you convert it to a Date object first?

Log in to post comments