• Post Reply Bookmark Topic Watch Topic
  • New Topic

convert date to date  RSS feed

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a JTable that has a Date field in it. when the table produces the result the dates look like this: Sun May 21 00:00:00 EST 2006

how can I change this format to simple: 21-MAY-06?
 
Manhar Puri
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check out the java.text.DateFormat class? Let me know if it helps.
 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used: setValue(Object value) and it worked
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!