{"ScriptPreparationCode":"var x = new Date(\u00272020-05-06\u0027);\r\nvar today = new Date();","TestCases":[{"Name":"Simple","Code":"var diff = x.getFullYear() === new Date().getFullYear() \u0026\u0026 x.getMonth() === new Date().getMonth() \u0026\u0026 x.getDate() === new Date().getDate();","IsDeferred":false},{"Name":"toISOString()","Code":"var diff2 = x.toISOString().substr(0, 10) === new Date().toISOString().substr(0, 10);","IsDeferred":false},{"Name":"Simple with cached date","Code":"var diff3 = x.getFullYear() === today.getFullYear() \u0026\u0026 x.getMonth() === today.getMonth() \u0026\u0026 x.getDate() === today.getDate();","IsDeferred":false},{"Name":"toISOString() with cached date","Code":"var diff4 = x.toISOString().substr(0, 10) === today.toISOString().substr(0, 10);","IsDeferred":false},{"Name":"Simple with local date","Code":"var localToday = new Date();\r\nvar diff5 = x.getFullYear() === localToday.getFullYear() \u0026\u0026 x.getMonth() === localToday.getMonth() \u0026\u0026 x.getDate() === localToday.getDate();","IsDeferred":false},{"Name":"toISOString() with local date","Code":"var localToday = new Date();\r\nvar diff6 = x.toISOString().substr(0, 10) === localToday.toISOString().substr(0, 10);","IsDeferred":false}]}