javascript:
var ctrl = document.getElementById('<your_textbox_clientID>');
var v = ctrl.value;
if (v.replace(/^\\s+|\\s+$/, '').length != 0 && isNaN(Date.parse(v))) {
alert('Invalid value!');
ctrl.focus();
return false;
}
This javascript allows value to be empty but if value is not empty then it has to be a valid datetime string. Yor input string has no day, so you need some formatting before checking:
v = v.substr(1,2)+'/01/'+v.substr(4);
For your example it will return "11/01/2007 11:12:59" (here 01 as "dummy" day).
It is very unusually to have time part without day in the date part...