String was not recognized as a valid DateTime

Dinesh Prajapati 126 Reputation points
2023-02-22T11:13:15.66+00:00

Hi team,

The data in my excel is in format dd-MM-yyyy but while copying to azure postgressql database, I am getting error saying that "String was not recognized as a valid DateTime". Could you please help me on this asap

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,457 questions
{count} votes

1 answer

Sort by: Most helpful
  1. HimanshuSinha-msft 19,376 Reputation points Microsoft Employee
    2023-02-24T22:44:07.3366667+00:00

    Hello @Dinesh Prajapati , Thanks for the question and using MS Q&A platform.

    I think you are putting the date format at dd/mm/yyyy as shown below and so getting the error .

    User's image

    When you create a datetime column in PG SQL the default format are already set

    User's image

    While reading the date, you can change the format User's image

    Thanks
    Himanshu

    Please accept as "Yes" if the answer provided is useful , so that you can help others in the community looking for remediation for similar issues.