Forums Register Login

problem with selecting data between two dates in sqlserver

+Pie Number of slices to send: Send
Hi,
i want to execute a date between select query using preparedStatement in sqlserver 2000.
my date is in string format,and before setting in preparedstatement i am converting it by Date.valueOf(string) as Date in DataBase is in smallDateTime Format.
but it is not working and i am also not getting any other way to select data from table between two dates.
please help me out.
thanks in advance.
+Pie Number of slices to send: Send
It's probably because you have the format of the date wrong. Try looking up the Date Formatter API to guidelines on how to convert a string date into a date object.
+Pie Number of slices to send: Send
ya i know the problem you hv told but i dont know how to solve this problem.
plz give solution me in some details.
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1202 times.
Similar Threads
Problem with Date Object
db2 year 2000 invalid date
Date difference
Difference between two Dates
problem in date comparing with db2 database,query is not executing
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 00:00:20.