I have three strings/ints which are day, month, and year. Is there any way of checking if they're in a valid DateTime format? I am using ASP.NET.When a user registers, he enters a month, day and year. I used to convert the three variables to a string and tryParse to check if it's legal, but the only problem is running the same project on a different machine because some different machines use different date formats.