Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to validate a date in C#?
Message
From
06/09/2006 11:46:46
 
 
To
06/09/2006 11:41:54
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01151376
Message ID:
01151379
Views:
33
>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)



Should've searched first. :)

Found it:
Re: Validate a date Thread #1136539 Message #1136631


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform