{"ScriptPreparationCode":"window.dates = [\r\n new Date(),\r\n new Date(\u00271960-12-01\u0027),\r\n new Date(\u00273401-01-12\u0027)\r\n].map((a) =\u003E (a.toISOString()));\r\n\r\nwindow.test1 = (isoString) =\u003E {\r\n\tisoString = isoString.split(\u0027T\u0027)[0].split(\u0027-\u0027);\r\n\treturn [isoString[1], isoString[2], isoString[0]].join(\u0027-\u0027);\r\n};\r\n\r\nlet regex = /^(?\u003Cyear\u003E\\d\u002B)-(?\u003Cmonth\u003E\\d\u002B)-(?\u003Cday\u003E\\d\u002B)T.*$/;\r\nlet replace = \u0027$\u003Cmonth\u003E-$\u003Cday\u003E-$\u003Cyear\u003E\u0027;\r\nwindow.test2 = (isoString) =\u003E (isoString.replace(regex, replace));\r\n\r\nwindow.test3 = (isoString) =\u003E {\r\n\tisoString = isoString.slice(0, 10);\r\n\treturn isoString.slice(8, 10) \u002B \u0027-\u0027 \u002B isoString.slice(5, 7) \u002B \u0027-\u0027 \u002B isoString.slice(0, 4);\r\n};","TestCases":[{"Name":"split and join","Code":"for (let isoString of dates)\r\n\ttest1(isoString);","IsDeferred":false},{"Name":"readable regex","Code":"for (let isoString of dates)\r\n\ttest2(isoString);","IsDeferred":false},{"Name":"slice and append mess","Code":"for (let isoString of dates)\r\n\ttest3(isoString);","IsDeferred":false}]}