This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Struts and the fly likes covert secs to mm:ss format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "covert secs to mm:ss format" Watch "covert secs to mm:ss format" New topic

covert secs to mm:ss format

Lalit Vora
Ranch Hand

Joined: Jun 22, 2006
Posts: 37

can anyone guide me please how to convert secs in duration field in resultset to display as mm:ss

Example. I am getting duration as 180 i want to show in report as 03:00

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864

[ July 11, 2006: Message edited by: Merrill Higginson ]

Consultant, Sima Solutions
I agree. Here's the link:
subject: covert secs to mm:ss format
It's not a secret anymore!