{"ScriptPreparationCode":"var time = \u00222023-05-22T12:34:56.789Z\u0022","TestCases":[{"Name":"Split \u0026 Join","Code":"const timeString = \u00222023-05-22T12:34:56.789Z\u0022;\r\nconst splitterMinutes = timeString.split(\u0022:\u0022);\r\nconst result = splitterMinutes.slice(0, 3).join(\u0022:\u0022);","IsDeferred":false},{"Name":"Regex","Code":"const timeString = \u00222023-05-22T12:34:56.789Z\u0022;\r\nconst regexFilterMinutes = /^(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2})/;\r\nconst match = timeString.match(regexFilterMinutes);\r\nconst result = match ? match[1] : null;","IsDeferred":false}]}