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:41:54
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
How to validate a date in C#?
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01151376
Message ID:
01151376
Views:
82
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)


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
Next
Reply
Map
View

Click here to load this message in the networking platform