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
Carlos Sanchez
NA
264
0
Exception: Specified cast is not valid
Oct 12 2004 10:31 AM
Can any1 tell me why the below line throws an exception? if ((DateTime.Now.TimeOfDay.CompareTo(((DateTime)RowSchedule["StartEnter"]).TimeOfDay) >= 0) && (DateTime.Now.TimeOfDay.CompareTo(((DateTime)RowTurno["LimiteEnter"]).TimeOfDay) <= 0)) The RowSchedule is a DataRow that retrieve the data from a Table from a DataSet. The table have 6 DateTime columns. This is the excepton: System.InvalidCastException Additional information: Specified cast is not valid. Can any1 tell me what is wrong? Thax in advance.
Reply
Answers (
3
)
How do I save an Object state to dB
ADO.NET doubt