Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to retrieve timestamp in my servlet

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I'm using mysql as my backend. and when i say rs.getString("create_date"); in my sql its giving error.

the create_date field is of data type TIME STAMP which has the format
0000-00-00 00:00:00

is there anyway out i can get the date in the format 0000-00-00 or i can store the while timestamp value in the format 0000-00-00 00:00:00
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic