The datepart hour is not supported by date function dateadd for data type date.
Recently, I worked on a requirement to retrieve the list of Sales order dates for specific time components. I used the DATEPART function, but after executing the query, I got this error. The datepart hour is not supported by date function dateadd for data type date. I executed the SQL query below to retrieve the … Read more