🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #297

SQL and non-US date formats

#297
From: Ivar B. Jessen
Date: Mon, 28 Dec 1998 00:00
28 lines
1667 bytes
In misccode.htm by Ken Mayer it is said under Filters/The Filter
Property:

PROBLEM:SQL itself does not understand non-US date formats. This
is not a BDE issue, nor is it a Visual dBASE issue ... This means
you need to use US/American date format of MM/DD/YYYY.

How literal should this be taken?

I have tried to incorporate two of Ken's examples (Dates: under
The Filter Property and Replace All: under SQL, right at the
beginning of the paper) in the attached program using European
date format (DMY) only and it seems to work. The program creates
a table, fills it with dates using 'insert into ...', generates a
form with a grid datalinked to the table and pusbuttons to update
and filter the dates. As far as I understand it all is done using
OODML, hopefully even SQL.

The only difference from Ken's examples is that I can not insert
the function 'date()' directly into the sql commands but need to
use either a parameter (dat = date()) or a variable (dato =
date()). It is even possible in some cases to insert a date in
curly brackets directly into the sql statement.

Any comments?


Ivar B. Jessen
Technical Details
Message-ID: <3687B805.4F3BCAB3@vip.cybercity.dk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,aa0f3eec63bcbcf7,start
X-Google-Attributes: gidff5a1,public
From: "Ivar B. Jessen" <ccc34145@vip.cybercity.dk>
Subject: SQL and non-US date formats
Date: 1998/12/28
Message-ID: <3687B805.4F3BCAB3@vip.cybercity.dk>
X-Deja-AN: 426486893
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Reply-To: bergishagen@it.dk
Newsgroups: borland.public.vdbase.data.sql