sql create date from parts code example Example: datefromparts mssql DATEFROMPARTS ( year, month, day )