This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "covert secs to mm:ss format" Watch "covert secs to mm:ss format" New topic
Author

covert secs to mm:ss format

Lalit Vora
Ranch Hand

Joined: Jun 22, 2006
Posts: 37
Hi,

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

Thanks
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864

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

Merrill
Consultant, Sima Solutions
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: covert secs to mm:ss format