如何将此字符串转换为所需的日期格式我有这样的字符串
string hourformat = dt1.ToString("H:mm"); this produce result 21:30
Run Code Online (Sandbox Code Playgroud)
我想要这个日期格式转换
2012-01-03 20:10:50.000, how can i achieve this
Run Code Online (Sandbox Code Playgroud)
我使用这种格式但产生了错误的结果
其实我得到的字符串以这种形式"08:30 PM","10:00 AM"我需要24小时格式转换,并在20 2012-01-03日期领带格式推到数据库:10:50000,请帮助我