The conversion of a nvarchar data type to a datetime

Rabia Kurnaz 386 Reputation points
2024-02-20T09:21:41.4+00:00

When I get a report via view, I get an error like this. how can i fix this Screenshot 2024-02-20 121825

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,743 questions
SQL Server Transact-SQL
SQL Server Transact-SQL
SQL Server: A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.Transact-SQL: A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
42 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,552 questions
{count} votes

1 additional answer

Sort by: Most helpful
  1. CosmogHong-MSFT 23,246 Reputation points Microsoft Vendor
    2024-02-20T09:27:53.8433333+00:00

    Hi @Rabia Kurnaz Have you checked if exists wrong date value like this: 2024-02-31.

    Best regards,

    Cosmog Hong


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.