home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.ingres
- Path: sparky!uunet!tpghq!sfc
- From: sfc@tpghq.com (Steve Caswell)
- Subject: Re: Q: How to get dates as DD/MM/YYYY?
- Message-ID: <1993Jan12.143505.16942@tpghq.com>
- Organization: Palmer & Associates, Inc., Norcross, GA
- References: <C0pLpE.DBx@demon.co.uk>
- Date: Tue, 12 Jan 1993 14:35:05 GMT
- Lines: 26
-
- In article <C0pLpE.DBx@demon.co.uk> Tom Davies <tomd@horse.demon.co.uk> writes:
- >Is there any way of getting values from a date column in the format
- >'dd/mm/yyyy', i.e. *with* the century, without messing around with
- >date-part?
- >Thanks,
- > Tom
- >---------------------------------------------------------------------
- > Tom Davies - 14 Rotterdam Drive, London E14 3JA, 071 987 0392
- > - tomd@horse.demon.co.uk
- >
- > -----PGP 2.0 PUBLIC KEY AVAILABLE-----
- >---------------------------------------------------------------------
-
- The answer depends on what you mean by "get". You can easily display dates in
- this format (really in just about any format). On a VIFRED form, create a
- field with datatype of date, and display format of "03/02/1901". The VIFRED
- Reference Manual explains this format. To get this into a program variable
- via a select, you will have to play with the date_part function. You should
- be able to use date_part to get the various pieces of the date (hopefully
- the centry also, but I can't guarantee it) and then put them back together.
-
- --
-
- Steve Caswell | (404) 448-7727 | "The opinions expressed are my
- Principal Consultant | sfc@tpghq.com | own. They may not be perfect,
- The Palmer Group | uunet!tpghq!sfc | but they're all I've got."
-