Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
how to convert string to custom date format
Ye Htut
Jul 24 2014 1:02 PM
556
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
upload text file to 5 ftp servers
Semantic Zooming