{"ScriptPreparationCode":"const TWO_DIGIT = \u00272-digit\u0027;\r\n\r\nvar options = {\r\n month: TWO_DIGIT,\r\n year: \u0027numeric\u0027,\r\n day: TWO_DIGIT,\r\n hour: TWO_DIGIT,\r\n hour12: false,\r\n minute: TWO_DIGIT,\r\n second: TWO_DIGIT,\r\n }\r\n\r\nvar cached = new Intl.DateTimeFormat(\u0027en-US\u0027, options);","TestCases":[{"Name":"new Intl.DateTimeFormat.format()","Code":"new Intl.DateTimeFormat(\u0027en-US\u0027, options).format(new Date());","IsDeferred":false},{"Name":"cached Intl.DateTimeFormat.format()","Code":"cached.format(new Date());","IsDeferred":false},{"Name":"new Intl.DateTimeFormat.formatToParts","Code":"new Intl.DateTimeFormat(\u0027en-US\u0027, options).formatToParts(new Date());","IsDeferred":false},{"Name":"cached Intl.DateTimeFormat.formatToParts()","Code":"cached.formatToParts(new Date());","IsDeferred":false},{"Name":"Custom","Code":"const date = new Date();\r\nconst year = date.getFullYear();\r\nconst month = (date.getMonth() \u002B 1).toString().padStart(2, \u00270\u0027);\r\nconst day = date.getDate().toString().padStart(2, \u00270\u0027);\r\nconst hour = date.getHours().toString().padStart(2, \u00270\u0027);\r\nconst minute = date.getMinutes().toString().padStart(2, \u00270\u0027);\r\nconst second = date.getSeconds().toString().padStart(2, \u00270\u0027);\r\nconst millis = date.getMilliseconds();\r\nconst t = \u0060${year}-${month}-${day} ${hour}:${minute}:${second},${millis}\u0060;\r\nreturn t","IsDeferred":false}]}