This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with selecting data between two dates in sqlserver

 
Pankaj Chaudhary
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Scott Selikoff
author
Saloon Keeper
Posts: 3896
16
Eclipse IDE Flex Google Web Toolkit
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pankaj Chaudhary
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya i know the problem you hv told but i dont know how to solve this problem.
plz give solution me in some details.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic