aspose file tools
The moose likes JDBC and the fly likes Date in MS SQL Server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Date in MS SQL Server" Watch "Date in MS SQL Server" New topic
Author

Date in MS SQL Server

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
The problem here is:
Whenever i insert a date in my sql server database it takes it
as 1/1/1900 regardless of whatever date i specify and when
queried from the front-end(java) it returns it as 1/1/1899
could anyone please help me out
thanks
------------------
narayana satish
Greenhorn

Joined: Dec 21, 2000
Posts: 25
Please check out whether it may be default date.Because some one might have created the default constraints in the date.
You can check with some other way, i.e., create your own table with the date field and try to enter into that.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Date in MS SQL Server
 
Similar Threads
problem with fetching Date
converting java.sql.Date into GregorianCalendar or Calendar
datepicker.js to sqlserver format
Prepared JDBC statements in Servlets?
Convert sql date to util date