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
srussell
NA
19
0
Catch exception help please
Aug 12 2004 5:06 PM
Doing simple date work and trying to validate a date. this.Label1.Text="Bad Date was attempted"; private void TextBox1_TextChanged(object sender, System.EventArgs e) { try { Convert.ToDateTime( this.TextBox1.Text.ToString()); } catch(Exception ee) { this.Label1.Text="Bad Date was attempted"; } What is the catch() expression to catch a bad date like 18/31/2004 Exception ee is missing it? TIA
Reply
Answers (
6
)
logging on desktop
ProcessInfo