• Post Reply Bookmark Topic Watch Topic
  • New Topic

converting time  RSS feed

 
swetha deshmukh
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i convert the time which is in eg:12:30 format to minutes.
 
Qi Liang
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use java.text.format.DateFormmater to parse "12:30" with your pattern to a java.util.Date object. Then use methods in java.util.Date to do any you want.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!