Re: Date format problems - Mailing list pgsql-sql

From Mark Roberts
Subject Re: Date format problems
Date
Msg-id s030e858.027@smtp.gosh.nhs.uk
Whole thread Raw
In response to Date format problems  ("Mark Roberts" <RoberM1@gosh.nhs.uk>)
List pgsql-sql
Sure, sorry;  Im using postgres version 7.2.1, and the column data type
is 'timestamptz'
Data examples: 

13/02/04 12:35:27 appears in the column as 02/04/13 12:35:27, or
13/04/02 12:35:27

70% of the time it is inserted in the correct format. 

The function shown in previous email is called by a C++ Builder 5
program using the postgresSQL ODBC driver version 7.02.00.05 (Insight
Distribution Systems) 

Any other info required ?

Sorry for the stupid questions but im a bit of a n00b, no excuse I
guess, but I just cant figure out whats going on.

Thanks for all your efforts,

Kind Regards,

Mark.


>>> Tom Lane <tgl@sss.pgh.pa.us> 02/16/04 03:34pm >>>
"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

_______________________________________
Disclaimer: Great Ormond Street Hospital for Children NHS Trust

SECURITY WARNING RE: PATIENT OR OTHER CONFIDENTIAL DATA. Please note
that Internet E-mail is simply not a secure communication medium.
We strongly advise that you understand & observe this lack of security
when e-mailing us.

This email and any files transmitted with it are intended solely for
the use of the individual to whom they are addressed.  If you have
received this email in error please notify your email administrator.

Any views or opinions are solely those of the author of this email
and do not represent those of Great Ormond Street Hospital for
Children NHS Trust unless specifically stated.

VIRUSES: This email message has been checked for the presence of
computer viruses by Sophos antivirus software.  However, this does
not guarantee that this email is free of viruses, and the recipient
should perform their own check. 



pgsql-sql by date:

Previous
From: Mark Gibson
Date:
Subject: Tip: a function for creating a remote view using dblink
Next
From: Tom Lane
Date:
Subject: Re: Date format problems