I am trying to save the current date time format from C# and convert it to an SQL Server date format like so yyyy-MM-dd HH:mm:ss so I can use it for my UP
yyyy-MM-dd HH:mm:ss
UP
Your problem is in the Date property that truncates DateTime to date only. You could put the conversion like this:
Date
DateTime
DateTime myDateTime = DateTime.Now; string sqlFormattedDate = myDateTime.ToString("yyyy-MM-dd HH:mm:ss");