pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Roberts <RoberM1@gosh.nhs.uk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Date format problems
Date: Mon, 16 Feb 2004 10:34:18 -0500
Message-ID: <25770.1076945658@sss.pgh.pa.us> (raw)
In-Reply-To: <s030c05a.023@smtp.gosh.nhs.uk>
References: <s030c05a.023@smtp.gosh.nhs.uk>

"Mark Roberts" <RoberM1@gosh.nhs.uk> writes:
> Hi im using the function below to insert data into my db; im using
> now() to get the timestamptz, however when inserted in the db the format
> seems to vary, the majority of the time its in the required European
> style but does spontaniously change to various other type can anyone
> throw any light on this problem. 

This is way too vague for anyone to help.  What PG version are you
using?  What is the actual datatype of the column you're inserting into?
Can you provide a specific example of a misformatted data value?

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <25770.1076945658@sss.pgh.pa.us>
Permalink:  ../25770.1076945658@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25770.1076945658@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, RoberM1@gosh.nhs.uk
  Subject: Re: Date format problems
  In-Reply-To: <25770.1076945658@sss.pgh.pa.us>

* 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