pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: date function bug
Date: Wed, 23 Oct 2019 09:43:28 -0500
Message-ID: <1629fd7f-af28-62ad-4dac-4e60ad981b41@gmail.com> (raw)
In-Reply-To: <1793586722.3867823.1571841150028@mail.yahoo.com>
References: <0bac35bcde6747e485bc7468c4080798@phx-exmbprd-01.adprod.bmc.com>
	<a4d04d62-f166-7b91-6e0a-66e06864c2c0@gmail.com>
	<1793586722.3867823.1571841150028@mail.yahoo.com>

On 10/23/19 9:32 AM, Ravi Krishna wrote:
>
> > postgres=# select to_date('2018150X','YYYYMMDD');
>   > to_date
> ------------
> > 2019-03-03
>
>
> > postgres=# select to_date('20181501','YYYYMMDD');
> >  to_date
> > ------------
>   > 2019-03-03
>
> is this a cut-n-paste mistake?

Nope.

Here's the screen print: http://i.imgur.com/f0UXfZh.png

-- 
Angular momentum makes the world go 'round.

view thread (11+ messages)  latest in thread

Message-ID: <1629fd7f-af28-62ad-4dac-4e60ad981b41@gmail.com>
Permalink:  ../1629fd7f-af28-62ad-4dac-4e60ad981b41@gmail.com/
Also on:    postgresql.org/message-id/1629fd7f-af28-62ad-4dac-4e60ad981b41@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: date function bug
  In-Reply-To: <1629fd7f-af28-62ad-4dac-4e60ad981b41@gmail.com>
  References: <0bac35bcde6747e485bc7468c4080798@phx-exmbprd-01.adprod.bmc.com> <a4d04d62-f166-7b91-6e0a-66e06864c2c0@gmail.com> <1793586722.3867823.1571841150028@mail.yahoo.com> <1629fd7f-af28-62ad-4dac-4e60ad981b41@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox