John Baird
Coatesville, Pennsylvania, United States
General information
Category:
Coding, syntax and commands
Environment versions
Network:
Windows 2000 Server
I use the DateTime.TryParse() or DateTime.TryParseExact() depending on my situation. The function returns a boolean and if the datestring is recognized as a valid date, it returns the date in an "OUT" parameter.
>Simple question:
>
>I have an ASP.NET app where the user will enter a date range for a report.
>There are two textboxes for date from and to.
>
>I get the dates as text. I am adding a custom validator.
>What's the best/easiest way to test entered dates are valid? (C# 2.0)
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only