File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
db date value problam
Joined: Jul 11, 2006
Sep 20, 2006 06:39:00
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
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.
Joined: May 26, 2003
Sep 20, 2006 17:55:00
It is giving you the value to second precision. You can use
to format it without the milliseconds.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: db date value problam
Running application on web start
How to store arraylist in xml file
can you do that in one query?
Query problem with MySQL 5
UnsupportedClassVersionError, Can the good people help
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014