🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #4

Re: Date param to Procedure

#4
From: Gelein van de Voorde
Date: Wed, 04 Oct 2006 18:37
51 lines
2179 bytes
adalberto baldini wrote:

> Magnus wrote:
> 
> > adalberto baldini wrote:
> > 
> > > I have set my computer with date in format dd/mm/yyyy and dd/mm/yy
> > 
> > The server doesn't know your date format.
> > 
> > > I run a query
> > > select  * from CURCY_CHG_DATE('ED', '01/10/2006')
> > > 
> > > and param date is processed in format mm/dd/yy
> > > 
> > > Any suggestion ?
> > 
> > 
> > Yes, either use
> > a) parameters   
> 
> ? in the same format as below ?
> 
> > b) or one of Interbase's date formats (for example yyyy-mm-dd or
> > mm/dd/yyyy)
> 
> Now I am a little confused : what is value recorded in DB ????
> 
> Using IBConsole
> 
> I enter in a date colum  04/24/2006 but I got error 'date is not
> valid ' , and 24/04/2006 is accepted.
> 
> In SQL if I run a query :
>  select * from curcy_chg_date('ED','24/04/2006')
> I get Error at line 1 - conversion error from string "24/04/06"
> and 04/24/2006 or 2006/04/24 are accepted.
> 
> Obs. Date returned by query are in format dd/mm/yyyy
> 
> Regards
> Adalberto Baldini

Hi Adalberto,

The IB Server expects the date format in English style. So in SQL you
have to use the format mm/dd/yyyy or mm/dd/yy. IBConsole uses your
regional settings in the data view and translate the date to the
required format.

-- 
Technical Details
Message-ID: <4523ff4c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <452385df$1@newsgroups.borland.com> <45239de1$1@newsgroups.borland.com> <4523bcf2$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,4d607e7fd7219207
X-Google-Thread: f4565,d886ce3c8593547b
X-Google-Attributes: gid114a0e,gidf4565,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Gelein van de Voorde" <gelein@gvsnet.nl>
Subject: Re: Date param to Procedure
Newsgroups: borland.public.interbase.sql,borland.public.interbase.ibconsole
References: <452385df$1@newsgroups.borland.com> <45239de1$1@newsgroups.borland.com> <4523bcf2$1@newsgroups.borland.com>
User-Agent: XanaNews/1.18.1.3
NNTP-Posting-Host: 82.173.185.201
Message-ID: <4523ff4c$1@newsgroups.borland.com>
Date: 4 Oct 2006 11:37:00 -0700
X-Trace: newsgroups.borland.com 1159987020 82.173.185.201 (4 Oct 2006 11:37:00 -0700)
Lines: 52
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail