Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
C# code to save datetime format in 01/01/1900 hh:mm:ss
Bineesh Viswanath
Dec 14 2017 7:16 AM
242
Reply
Dear,
I am in a winform project and needed help from someone on below issue.
I need a datetime format of 01/01/1900 hh:mm:ss to insert into table.
The current below code not working for me with output - 2017-12-14 16:07:40.000
string
.Format(
"{0:hh:mm:ss}"
,
DateTime
.Now.ToString());
format needed :-
1900-01-01 16:07:40.000.
Thank you.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
GetBytes method for Text, NText, or Image not for nvarchar?
How to use Multi Threading in a form C# winform