🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Converting DATE. TIME, and TIMESTAMP values for SQL

#11267
From: Wayne Niddery [TeamB]
Date: Mon, 02 Dec 2002 00:23
45 lines
2554 bytes
"Edward Diener" <eddielee@tropicsoft.com> wrote in message
news:3dea8c42@newsgroups.borland.com...
>
> One of the problems is that sequence, at least as far as the date value,
is
> concerned, is locale dependent. In the US the dates are MM-DD-YY. So how
> does one know which format to use ?

Interbase always accepts the same set of formats no matter what anyone's
local settings may be.

I have searched for the SQL format for
> DATE, TIME, and TIMESTAMP for Interbase in the docs to no avail. But this
> seems par for the Interbase docs, which are terrible. No wonder Borland
has
> had such a hard time selling Interbase to customers.

Embedded SQL guide, page 182:

Formatting dates for input
Dates for input as datatype DATE can have any of the following forms:
YYYYpMMpDD
MMpDDpYYYY
DDpMMpYYYY
YYpMMpDD
MMpDDpYY
DDpMMpYY
where:
DD = one- or two-digit day
MM = one- or two-digit month,
or a three-letter month abbreviation,
or the full English month name (case does not matter)
YY = last two digits of a year
YYYY = four-digit year
p = any ASCII punctuation character; extra whitespace (tabs or spaces) is
ignored

... there is a whole lot more information here.


--
Wayne Niddery (Logic Fundamentals, Inc.)
RADBooks: http://www.logicfundamentals.com/RADBooks/delphibooks.html
It used to be that other people's achievements were considered an
inspiration, not a grievance.
Technical Details
Message-ID: <3deaa890$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!feeder.via.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3dea6388$1@newsgroups.borland.com> <3dea6f7e@newsgroups.borland.com> <3dea8c42@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114a0e,c9629bca0d33469f
X-Google-Attributes: gid114a0e,public
X-Google-ArrivalTime: 2002-12-01 16:32:17 PST
From: "Wayne Niddery [TeamB]" <wniddery@chaff.aci.on.ca>
Newsgroups: borland.public.interbase.sql
References: <3dea6388$1@newsgroups.borland.com> <3dea6f7e@newsgroups.borland.com> <3dea8c42@newsgroups.borland.com>
Subject: Re: Converting DATE. TIME, and TIMESTAMP values for SQL
Date: Sun, 1 Dec 2002 19:23:32 -0500
Lines: 47
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 209.50.82.158
Message-ID: <3deaa890$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1038788752 209.50.82.158 (1 Dec 2002 16:25:52 -0800)
X-Authenticated-User: wniddery
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!feeder.via.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail