Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
7
Reply
how to get datetime with milliseconds in c#?
Mani Kandan
Jun 24 2016 3:01 AM
416
Reply
Sir,<br /><br />I am trying to export excel sheet using C#.net and also need excel sheet name like year with datetime.<br />I have tried below c# code but can not getting date like this, ie;<br /><br />I want output, string strfilename = "<span style="color: #ff0000;">06/24/2016-8:32:45.126 AM</span>";<br /><br /> DateTime filename = DateTime.Now;<br /> string strfilename = filename.ToString("yyyyMMddHHmmss");<br /><br />Kindly replay me.<br /><br />Regards,<br />Abhilash.J.A
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
7
)
Next Recommended Forum
converting json data to datatable with only specific fields
Implementing drop down list in Xamarin.forms