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
Gnanu
1.7k
52
9k
string was not recognized as a valid datetime
Aug 23 2019 8:08 AM
I'm trying to convert date format but its exception, string was not in valid date time.
string FROM = DtpFrom.Value.ToString();
DateTime mfromdt = DateTime.ParseExact(FROM, "dd/MM/yyyy HH:mm", CultureInfo.InvariantCulture);
FROM = mfromdt.ToString();
this is my code, i'm getting exception at DateTime mfromdt and getting
DtpFrom.value="8/23/2019 6:36:46 PM"(in MM/dd/yyyy) format.
Thanks in advance!
Reply
Answers (
6
)
Execution time more Required in foreach loop
How to display the before any row