I'm inserting some data from my C# program into SQL Server 2012. I have column in my table that is datetime
type. My C# code:
string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
// returns 2016-04-11 11:47:05.535
When I debug my application I can see that date is in correct format (same as above). But when I look into my database, this date is:
2016-11-04 11:47:05.537
Month and day are swapped. Why is this happening?