{"ScriptPreparationCode":null,"TestCases":[{"Name":"long","Code":"const today = new Date(1525255491);\r\nconst today2 = new Date(1525262691);\r\nconst yesterday = new Date(1525176291);\r\nconst lastMonth = new Date(1522670691);\r\nconst lastYear = new Date(1493726691);\r\n\r\nfunction check(date1, date2) {\r\n return (\r\n date1.getDate() === date2.getDate() \u0026\u0026\r\n date1.getMonth() === date2.getMonth() \u0026\u0026\r\n date1.getFullYear() === date2.getFullYear()\r\n );\r\n}\r\n\r\ncheck(today, today2);\r\ncheck(today, yesterday);\r\ncheck(today, lastMonth);\r\ncheck(today, lastYear);","IsDeferred":false},{"Name":"short","Code":"const today = new Date(1525255491);\r\nconst today2 = new Date(1525262691);\r\nconst yesterday = new Date(1525176291);\r\nconst lastMonth = new Date(1522670691);\r\nconst lastYear = new Date(1493726691);\r\n\r\nfunction check(date1, date2) {\r\n return date1.toDateString() === date2.toDateString();\r\n}\r\n\r\ncheck(today, today2);\r\ncheck(today, yesterday);\r\ncheck(today, lastMonth);\r\ncheck(today, lastYear);","IsDeferred":false}]}