Forums Register Login

Date in MS SQL Server

+Pie Number of slices to send: Send
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
------------------
+Pie Number of slices to send: Send
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.
Or we might never have existed at all. Freaky. So we should cherish everything. Even this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 749 times.
Similar Threads
converting java.sql.Date into GregorianCalendar or Calendar
problem with fetching Date
Prepared JDBC statements in Servlets?
datepicker.js to sqlserver format
Convert sql date to util date
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:39:20.