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.


Amit GuptaRank #190 · 12.8K reputationPosted Dec 14, 2017, 2:42 AM EST
Bineesh ViswanathRank #3,087 · 464 reputationPosted Dec 16, 2017, 1:42 AM EST
Bharathi RajaRank #1,778 · 842 reputationPosted Jan 5, 2018, 7:20 PM EST