{"ScriptPreparationCode":"var options = {\r\n year: \u0027numeric\u0027, month: \u0027numeric\u0027, day: \u0027numeric\u0027,\r\n hour: \u0027numeric\u0027, minute: \u0027numeric\u0027, second: \u0027numeric\u0027,\r\n hour12: false,\r\n fractionalSecondDigits: 3,\r\n}\r\nvar intlFormat = new Intl.DateTimeFormat(\u0027en-US\u0027, options);","TestCases":[{"Name":"new Date()","Code":"(new Date()).toISOString().trim().replace(\u0027T\u0027, \u0027 \u0027).replace(\u0027Z\u0027, \u0027\u0027)","IsDeferred":false},{"Name":"Intl.DateTimeFormat()","Code":"intlFormat.format(new Date())","IsDeferred":false},{"Name":"Date().toLocaleString()","Code":"new Date().toLocaleString(\u0022en-US\u0022, options)","IsDeferred":false},{"Name":"JavaScript Date Time format","Code":"let date_time = new Date()\r\nlet formatted_date = date_time.getFullYear() \u002B \u0022-\u0022 \u002B (date_time.getMonth() \u002B 1) \u002B \u0022-\u0022 \u002B date_time.getDate() \u002B \u0022 \u0022 \u002B date_time.getHours() \u002B \u0022:\u0022 \u002B date_time.getMinutes() \u002B \u0022:\u0022 \u002B date_time.getSeconds() \u002B \u0022.\u0022 \u002B date_time.getMilliseconds()","IsDeferred":false},{"Name":"JavaScript Date Time format using Template Strings.","Code":"let date_time = new Date()\r\nlet formatted_date = \u0060${date_time.getFullYear()}-${date_time.getMonth() \u002B 1}-${date_time.getDate()} ${date_time.getHours()}:${date_time.getMinutes()}:${date_time.getSeconds()}.${date_time.getMilliseconds()}\u0060\r\n","IsDeferred":false}]}