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
Ye Htut
NA
120
34.4k
how to convert string to custom date format
Jul 24 2014 1:02 PM
string stringdate,sdate;
stringdate=dt.Rows[i]["Date"].ToString();
sdate = stringdate.Substring(0, 10);
//sdate='6/8/2014'
DateTime dtime=new DateTime();
dtime = DateTime.ParseExact(sdate, "M/d/yyyy", null);
MessageBox.Show(dtime.ToString());
In above code, there is an error although I convert string to correct date format. plz help me
Reply
Answers (
1
)
upload text file to 5 ftp servers
Semantic Zooming