• Post Reply Bookmark Topic Watch Topic
  • New Topic

Date format problem  RSS feed

 
vicky baba
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am entering system date ..

java.sql.Timestamp ApprovedOn= null;

java.sql.Timestamp currDate = UtilClass.getSystemDateTime();
ApprovedOn = currDate;


pstmt.setTimestamp(16, ApprovedOn);


At this time it is entering time perfectly.
like
3/31/2005 5:42:21 PM
But when i fetch this value it is showing time with AM.

Please Help me i am at Client side Very urgent.with code please

Thanks in advance

 
Naadir Peterson
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try using simpldateformat to format the date appropriately...

maybe the server time is incorrect...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!