Strange because that line of code works perfectly fine in my system. If toISOString works why not use toJSON? When I tried it directly in-line as you did above I got the null value on the date object which is why I did the extra intermediate variables.
↧