Article View: borland.public.interbase.sql
Article #3Re: Date param to Procedure
From: adalberto baldini
Date: Wed, 04 Oct 2006 13:53
Date: Wed, 04 Oct 2006 13:53
39 lines
2090 bytes
2090 bytes
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
Technical Details
Message-ID:
<4523bcf2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<452385df$1@newsgroups.borland.com> <45239de1$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,4d607e7fd7219207 X-Google-Thread: f4565,d886ce3c8593547b,start X-Google-Attributes: gid114a0e,gidf4565,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 04 Oct 2006 15:53:55 +0200 From: adalberto baldini <finman@swissonline.ch> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.interbase.sql,borland.public.interbase.ibconsole Subject: Re: Date param to Procedure References: <452385df$1@newsgroups.borland.com> <45239de1$1@newsgroups.borland.com> In-Reply-To: <45239de1$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.203.168.105 Message-ID: <4523bcf2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1159970034 62.203.168.105 (4 Oct 2006 06:53:54 -0700) Lines: 39 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail