+ Start a Discussion
sfpsfp 

Seconds to Minutes in visual force Output Text

Hi All

I have converted seconds to Minutes. How to format single digit to 01 like that.

{!IF(FLOOR(MOD(t.CallDurationInSeconds,3600)/60)==0,'00',FLOOR(MOD(t.CallDurationInSeconds,3600)/60))}

how to format Minutes in single digit like 6 to 06.

Thanks
AmitAmit (Salesforce Developers) 
Hello,

Please refer following links for more information:

https://help.salesforce.com/apex/HTViewSolution?urlname=Formula-for-creating-Date-Time-field-using-Date-field-and-Time-Time-as-Picklist&language=en_US

https://help.salesforce.com/apex/HTViewSolution?urlname=Data-Loader-Import-data-for-Date-or-Date-Time-field-1327108684799&language=en_US