Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Re: formatting month and date
On Mon, 30 Jul 2001 07:44:09 -0500, konopam <konopam_at_yahoo.com> wrote:
--cut--
If you use TO_Date without time it automatically creates the Date with time
00:00 h.
So your end date will not be in your resultset except you have a result wich
is exactly at 00:00 h.
so try TO_CHAR(PLAN_S_DATE, 'YYYYMMDD') BETWEEN '20010101' AND '20010131'
Which gives you the whole January set of 2001.
The other possibility is to increase the end date by 1.
henning
-- Henning Follmann 8 Jane Road New Providence, NJ 07974 Tel.: +1 908 464 8972 H.Follmann_at_gmx.de -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 80,000 Newsgroups - 16 Different Servers! =-----Received on Mon Jul 30 2001 - 16:11:45 CDT