Re: date format

From: Michael Nolan <htfoot(at)gmail(dot)com>
To: Marc Millas <marc(dot)millas(at)mokadb(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: date format
Date: 2023-06-14 17:05:00
Message-ID: CAOzAqu+jXR_DgNuDXGG0QiSCywE03iwK=Dpa+UaD=+4af+3Wgw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Can you use a CASE statement? The real issue with date conversion is
not knowing if a value of 02-03-2023 is mm-dd-yyyy or dd-mm-yyyy.

On Wed, Jun 14, 2023 at 11:42 AM Marc Millas <marc(dot)millas(at)mokadb(dot)com> wrote:
>
> Hi,
>
> I would like to load data from a file via file_fdw or COPY.. its a postgres 14 cluster
>
> but.. One date (timestamp) column is written french order and another column is written english order. Data comes from a state owned entity so asking for a normalization may take ages.
>
> obviously I could load as char and then apply an appropriate transformation. no pb.
> But is there a direct way to do this ?
>
> thanks
>
>
> Marc MILLAS
> Senior Architect
> +33607850334
> www.mokadb.com
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2023-06-14 17:27:01 Re: date format
Previous Message Marc Millas 2023-06-14 16:42:38 date format