home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.theory
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!umn.edu!csus.edu!netcom.com!netcomsv!butch!iscnvx!enterprise!news
- From: stroup@aspen.ops.lmsc.lockheed.com ()
- Subject: Re: date -> day of week conversion
- Message-ID: <1992Dec14.174550.24045@enterprise.rdd.lmsc.lockheed.com>
- Lines: 19
- Sender: news@enterprise.rdd.lmsc.lockheed.com
- Nntp-Posting-Host: aspen.ops.lmsc.lockheed.com
- Reply-To: stroup@aspen.ops.lmsc.lockheed.com ()
- Organization: Lockheed Missiles And Space Co.
- References: <Byqssz.Bu5@gabriel.keele.ac.uk> <dtb.724154401@otto>
- Date: Mon, 14 Dec 92 17:45:50 GMT
-
-
- >
- csa09@keele.ac.uk (Paul Singleton) writes:
-
- >Can anyone produce SQL code to convert a date from DD/MM/YY (or MM/DD/YY)
- >format into the corresponding day of the week? I assume that you can
- >get at the individual DD, MM and YY fields (as integers?).
-
- >
-
- Maybe I'm missing the point here (or maybe this is an Oracle extension to
- SQL) but can't you just use the to_char function:
-
- Select to_char(my_date,'DAY') from my_table;
-
- According to the doc, DAY gives you the name of the day, padded with blanks
- to a length of nine characters.
-
- judie
-