pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tk421 <vrobador@gmail.com>
To: Gavin 'Beau' Baumanis <gavinb@eclinic.com.au>
Cc: pgsql-sql@postgresql.org
Subject: Re: dateformat issue
Date: Thu, 10 Apr 2008 13:19:42 +0200
Message-ID: <47FDF7CE.3090909@gmail.com> (raw)
In-Reply-To: <8817FD2B-5B01-4E3D-9C6D-A6FF165561FB@eclinic.com.au>
References: <8817FD2B-5B01-4E3D-9C6D-A6FF165561FB@eclinic.com.au>

Gavin 'Beau' Baumanis escribió:
> Hi Everyone,
>
> I have a question about dates, please.
>
> I am using Coldfusion and Postgres
> I have a function that takes the ate entered in a form and converts it 
> into an odbc date format.
>
> So the string ends up being;
> {d '2008-04-10'}
>
> Strangely, the function is used throughout the application and causes 
> no issues but on one particular template.
> And this same templates is replicated for other clients - that 
> seemingly have no issue .
>
>
> The SQL is simply
>
> Insert into table (datefield) values ({d '2008-04-10'})
>
> Now, I have read the docs and do not see the {d '2008-04-10'} format 
> as being a valid date data type...
> But it works elsewhere in the application / on other sites - thus my 
> current state of confusion.
>
> Thanks in advance for any ideas you might have.
>
>
>
> Please contact me if you should have any questions.
>
> Gavin 'Beau' Baumanis
> Senior Application Developer
> PalCare Pty. Ltd.
>
> E: beau@palcare.com.au
> T: +61 -3 9318 4567
> M: +61 -4 38 545 586
> W: http://www.palcare.com.au
>
    I had some similar probles with dates, and i solved it using a 
string format (yyyymmdd) to set date format, and two functions (toString 
and toDate) made by myself inf the necesary language (asp, php, jsp....)

    This format is full valid for comparations (>, <, =) and orders in 
SQL. The only problem is to work in your application, but it may be 
solved with some functions

   



view thread (6+ messages)  latest in thread

Message-ID: <47FDF7CE.3090909@gmail.com>
Permalink:  ../47FDF7CE.3090909@gmail.com/
Also on:    postgresql.org/message-id/47FDF7CE.3090909@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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: vrobador@gmail.com, gavinb@eclinic.com.au
  Subject: Re: dateformat issue
  In-Reply-To: <47FDF7CE.3090909@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