This week's giveaway is in the Beginning Java forum.
We're giving away four copies of Bad Programming Practices 101 (e-book) and have Karl Beecher on-line!
See this thread for details.
Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

convert SQL TimeStamp to String  RSS feed

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do i convert SQL TimeStamp to String
22-05-20-2008 14:04:59:612
 
Marshal
Posts: 59411
187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go through the API documentation and look for the toString method, as a first stage.
 
Sheriff
Posts: 21378
91
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.sql.Timestamp is a subclass of java.util.Date, so you can use java.text.DateFormat for formatting it.
 
This tiny ad is wafer thin:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!