You need to sign in to do that
Don't have an account?
Divya S
Date format in pageblocktable
Hello,
I am trying to display the createddate field in '01/01/2014' format in visualforce page in <apex:column>. I tried various options which didn't work. Can anyone help?
I am trying to display the createddate field in '01/01/2014' format in visualforce page in <apex:column>. I tried various options which didn't work. Can anyone help?
I somehow managed to find a solution and hence try your soltuion. Appreciate your response though !
<apex:column headerValue="Created Date" >
<apex:outputText value="{0,date,MM/dd/yyyy}">
<apex:param value="{!t.createdDate}" />
</apex:outputText>
</apex:column>
All Answers
<apex:page standardcontroller="travel__c">
<apex:dataTable value="{!travel__c}" var="travel">
<apex:column headerValue="created date">
<apex:outputText value="{0,date,dd'/'MM'/'yyyy}">
<apex:param value="{!travel__c.createddate}" />
</apex:outputText>
</apex:column>
</apex:dataTable>
</apex:page>
Please mark this as a solution if this resolved your issue.
I somehow managed to find a solution and hence try your soltuion. Appreciate your response though !
<apex:column headerValue="Created Date" >
<apex:outputText value="{0,date,MM/dd/yyyy}">
<apex:param value="{!t.createdDate}" />
</apex:outputText>
</apex:column>