hi i want to do validation of datetime in javascripti.e is i want it in this format dd:mm:yyyy:hh:m m:ss
plz heklp me out its urgent
[CODE=javascript]if (!input.match(/^[0-3][0-9]\:[0-1][0-9]\:[0-2][0-9][0-9][0-9]\:[0-2][0-9]\:[0-6][0-9]\:[0-6][0-9]$/)) {
alert ('Invalid date');
return false;
}[/CODE]
After this, split the string and validate each field.
Comment