public DateTime CheckDate(DateTime d) { if (d.Year < 1990 && d.Month < 1 & d.Day < 1 ) { Console.WriteLine("error"); d =DateTime.Parse("0-0-0000" ); return d; } else { return d; } }
&&
||
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)