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
Komanduri Vishnu Teja
NA
2
0
String is not recognized as valid date time
Mar 15 2006 12:29 AM
Hi,
I am working in an asp.net application(Version 1.1) in which i am using DateTime.Now.ToShortDateTimestring() to get the system date and displaying in a text box. The date format that is set in the System is "MM/DD/YYYY".
Some times i am getting a weird date as "15-03-06" instead of "03/15/2006" and the system is throwing "String is not recognized as valid date time" error when converting to a datetime using Convert.ToDate().
The error is not coming all the times.
Any help.
Thanks in Advance.
Reply
Answers (
0
)
Newbie here....How create a database using C#?
How to create a random number like lottery with condition