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
if you want to store current date in table so you can use
GETDATE();
or pass this function as a parameter
eg. 'update tblname set curdate=GETDATE() where colname=123'