Author: senzacionale | Posted on: 2/24/2010 8:04:38 AM | Views : 536

Iwant to check if date is in correct type. there is many possibilities of correct dates like 02.08.2010, 2.8.2010, 02.8.2010 02.08, 02.August,...
i can test each on with code like this
if (DateTime.TryParse(DateTime.ParseExact(date, "dd.M.", new CultureInfo("sl-SI")).ToString(), out dt))
but then i can have 40 if statements. Is it possible to check all dates with one if statement or one loop? {
...

Go to the complete details ...