DateTime dob = DateTime.Now;
string dobStr = dob.ToString("MMddyy");
if (idNumber.StartsWith(dobStr))
{
}
You'll have to change the ToString parameter if your ID numbers use the month/day/year in a different order.
In order to validate this, you'll need a custom validator (on a web form).