Are you sure your database column is a timestamp (not date) column? If it were a date column then it wouldn't have a time component and you would see exactly what you are seeing.
gopal kishan
Ranch Hand
Joined: Feb 23, 2005
Posts: 99
posted
0
Hi,
My database column data type is DATE, but in my database it shows values like 11/7/2005 10:12:45 PM
gopal kishan
Ranch Hand
Joined: Feb 23, 2005
Posts: 99
posted
0
Hi Gerardo,
I want to show like " 11/07/2005 10:12 AM. " i specified the format in <f:convertDateTime> but it is not working.
Jeff Albertson
Ranch Hand
Joined: Sep 16, 2005
Posts: 1780
posted
0
How is the value being obtained from the database? If you are using the JDBC, which java.sql.ResultSet method are you using: getDate or getTimestamp? You should be using the latter.
There is no emoticon for what I am feeling!
gopal kishan
Ranch Hand
Joined: Feb 23, 2005
Posts: 99
posted
0
Hi All,
Thanks for your replies. i got it.
Since i am using hibernate , simply i specified the type="timestamp" in xml mapping file.