parse years with json datetime javascript code example Example: find if json property is of type date type Object.prototype.toString.call(date) === '[object Date]'