How to Format Time field on Visualforce page Salesforce?

In my recent project, I had to format time field on Visualforce Page directly. Most of the solution available/suggested where throwing error message on the visualforce page!

But finally I managed to formate time field on Visualforce page directly without using Apex controller!!

<apex:outputText value="{0,number,00}">
    <apex:param value="{!Minute(YourObject.Time_Field__c)}" />

Happy coding!!!

Share the Post:

Related Posts