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
narasiman rao
NA
519
768.9k
when i run code shows string was not recognized validdatetim
Dec 29 2012 8:03 AM
the code as follows;
DateTime dateofbirth = Convert.ToDateTime(txt_DOB.Text.ToString());
DateTime Weddingday = Convert.ToDateTime(txt_wedding.Text.ToString());
if(dateofbirth.Year.ToString()!="1900")
SendSMS(txt_DOB.Text.Trim());
else if(Weddingday.Year.ToString()!="1900")
SendSMS(txt_wedding.Text.Trim());
when i run this code error as follows;
string was not recognized a valid date time.
from my above wat is the problem help me.
Reply
Answers (
1
)
Error 1 Operator '!=' cannot be applied to operands of type
refactor code