Hello
C# string type = dt.Rows[0]["TIME"].ToString()
type is 2023-05-15 AM 8:57:06
I need to convert to MSSQL DateTime
MSSQL => 2023-05-15 08:57:06.000
If you do this, an error occurs. In C# , string.Format("{yyyy-MM-DD HH:mm:ss:fff}", "2023-05-15 AM 8:57:06");
I need to convert to DateTime, In C# 2023-05-15 AM 8:57:06 ====> 2024-05-15 08:57:06.000
******** How do you convert this(2023-05-15 AM 8:57:06 ==> 2024-05-15 08:57:06.000) type in C#?
Please Help me
C# string type = dt.Rows[0]["TIME"].ToString()
type is 2023-05-15 AM 8:57:06
I need to convert to MSSQL DateTime
MSSQL => 2023-05-15 08:57:06.000
If you do this, an error occurs. In C# , string.Format("{yyyy-MM-DD HH:mm:ss:fff}", "2023-05-15 AM 8:57:06");
I need to convert to DateTime, In C# 2023-05-15 AM 8:57:06 ====> 2024-05-15 08:57:06.000
******** How do you convert this(2023-05-15 AM 8:57:06 ==> 2024-05-15 08:57:06.000) type in C#?
Please Help me
Last edited: