TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
richard smith
1.4k
285
160.7k
Validate Date
Feb 4 2013 11:27 AM
I have a text box on a web form where a user will input a Discharge Date...The date MUST be entered in this format MM/DD/YYYY what C# code would validate that the entry is input in that format, and if not show an error? Something like:
ButtonFinish_Click()
{
//check to see if the date is correct format
try
{
//how to check?
//if valid Response.Redirect -- Go to next page
}
catch
{
Error.Text = "Dates must be entered in a MM/DD/YYYY Format. Please check the entry and try again."
Reply
Answers (
7
)
online exam
iphone apps in visual studio