sql server convert date to day code example
Example 1: sql server convert string to date
Cast( '2011-07-07' as date ) as convertedDate
Example 2: Convert JS date time to SQLSERVER datetime
new Date().toISOString().slice(0, 19).replace('T', ' ');