about date [message #226570] |
Sun, 25 March 2007 04:14  |
parasuramchekuri
Messages: 32 Registered: March 2007 Location: vishakapatnam
|
Member |
|
|
hai all
i have a requirement to select details between twodates, and my requirement is those two dates are equal, the result should display only that day, i ve used between function for this but i did not get result if both dates are equal
pls give me any solution
Thanks in Advance
Ram...
|
|
|
|
Re: about date [message #226572 is a reply to message #226571] |
Sun, 25 March 2007 04:34   |
parasuramchekuri
Messages: 32 Registered: March 2007 Location: vishakapatnam
|
Member |
|
|
hai
my requirement is
selection of data between two dates, including those two dates
ex
i ve customer details with datesonly,
if i take to date and from date is samedate
|
|
|
|
Re: about date [message #226578 is a reply to message #226573] |
Sun, 25 March 2007 04:59   |
parasuramchekuri
Messages: 32 Registered: March 2007 Location: vishakapatnam
|
Member |
|
|
AND BILL_DATE BETWEEN TO_DATE('fromdate','DD/MON/YY') AND TO_DATE('todate','DD/MON/YY');
in the above quary we are passing the dates to fromdate and todate
through java.
we are passing the todate:= 25-03-2007 and
from date:= 25-03-2007
but quary doesn't work
no results will be shown
but i ve data corrsponding this date in database
Thanks
Ram
|
|
|
|
Re: about date [message #226607 is a reply to message #226578] |
Sun, 25 March 2007 17:47  |
William Robertson
Messages: 1643 Registered: August 2003 Location: London, UK
|
Senior Member |
|
|
parasuramchekuri wrote on Sun, 25 March 2007 10:59 | AND BILL_DATE BETWEEN TO_DATE('fromdate','DD/MON/YY') AND TO_DATE('todate','DD/MON/YY');
in the above quary we are passing the dates to fromdate and todate
through java.
we are passing the todate:= 25-03-2007 and
from date:= 25-03-2007
|
What relationship does the format 'DD/MON/YY' have with a value like '25-03-2007'?
Does Java not allow you to pass in DATE values and avoid the conversion?
[Updated on: Sun, 25 March 2007 17:47] Report message to a moderator
|
|
|