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
mithun kumar
NA
20
17.9k
Converting string to Datetime
Jun 3 2012 3:58 AM
Hello Friends,
I have two Datetime as string and trying to convert this string to Datetime as follows:
DateTime Dt = Convert.ToDateTime(sEstDate);
string sDt = Dt.ToString("dd-MM-yyyy HH:mm:ss");
DateTime dtt = Convert.ToDateTime(sDt);
But its giving me the Error:
"String was not recognized as a valid Datetime"
Thanks & Regards,
Mithun.
Reply
Answers (
3
)
Cacheing in ASP.NET
Using CollapsiblePanelExtender/any alternative Control within Gridview(binded with database) to expand and collapse data