Forums Register Login

db date value problam

+Pie Number of slices to send: Send
hi all,
i am using mysql db.i have stored the date in mysql table using
now().it stored as : 2006-09-18 11:38:03

But when i retrieved that value using jdbc in my application it is adding zero at the end. like : 2006-09-18 11:38:03:0

can all guess why it is happening like this.
+Pie Number of slices to send: Send
Raj,
It is giving you the value to second precision. You can use SimpleDateFormat to format it without the milliseconds.
If tomatoes are a fruit, then ketchup must be a jam. Taste 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 763 times.
Similar Threads
How to store arraylist in xml file
can you do that in one query?
UnsupportedClassVersionError, Can the good people help
Running application on web start
Query problem with MySQL 5
More...

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