Verify a date format from a post response

[
    {
        "totalQuestion": "30",
        "totalMark": "50",
        "difficultyCode": "Easy",
        "negativeMark": "0.00",
        "isActive": "1",
        "scheduledDateTime": "0002-11-30 00:00:00.0",
        "endDateTime": "0002-11-30 00:00:00.0",
        "testId": "1",
        "testName": "satya",
        "difficultyLevel": "1",
        "isScheduled": "1",
        "isNegativeMarking": "0"
    }
]
for (i = 0; i < jsonData.length; i++) {
    pm.test("Date is present in correct format", function () {
        pm.expect(jsonData[i].endDateTime).to.match(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}:\d{1}$/);
    });
}

kindly help me with this