fix error in dateTime logic

string length when have YYYY-MM-DDTHH:MM is 16, not 14.