pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aarni Ruuhimäki <aarni@kymi.com>
To: pgsql-sql@postgresql.org
Subject: Re: dateformat issue
Date: Thu, 10 Apr 2008 09:17:33 +0300
Message-ID: <200804100917.33729.aarni@kymi.com> (raw)
In-Reply-To: <8817FD2B-5B01-4E3D-9C6D-A6FF165561FB@eclinic.com.au>
References: <8817FD2B-5B01-4E3D-9C6D-A6FF165561FB@eclinic.com.au>

On Thursday 10 April 2008 03:14, Gavin 'Beau' Baumanis wrote:
> 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'})
>

Hi,

The above is not a valid value for a date field. What function do you use for 
the conversion ? 

#DateFormat(form.date, "YYYY-MM-DD")# ? Or perhaps a custom function / 
conversion script ?

Which client (browser?) / platform produces the error ?

And just out of general interest, which cf-version and platform are you 
using ? Pg version ?

I use pg 8.x's on CentOS and Fedora with CF 5 Pro Linux and CFMX7 Standard. I 
also heard that CFMX7+ would install and run ok on Ubuntu.

Best regards,

-- 
Aarni Ruuhimäki
---
Burglars usually come in through your windows.
---



view thread (6+ messages)  latest in thread

Message-ID: <200804100917.33729.aarni@kymi.com>
Permalink:  ../200804100917.33729.aarni@kymi.com/
Also on:    postgresql.org/message-id/200804100917.33729.aarni@kymi.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: aarni@kymi.com
  Subject: Re: dateformat issue
  In-Reply-To: <200804100917.33729.aarni@kymi.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