function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vishal_ThoriyaVishal_Thoriya 

Showing date time with Apex:outputtext

Imeant, Do we have any way to show the time in user timezone using Outputtext?

 

I am trying to show date time with Apex:outputtext using the below code:

 

I am not using apex code only use for visualforce.

 

<apex outputLink rendered="{! fld == 'Due__c'}" onclick="updateDueDate('{!r.Id}');return false;" styleClass="actionLink">

<apex outputText value="{0,date,M/d/yyyy h:mm a}" ><apex param value="{!r[fld]}"/></apex outputText>

</apex outputLink>

PremanathPremanath

Hi,

 

 Same thing for Datetime/Date Use Output Text

 

<apex:outputText value="{0,date,dd/MM/yyyy}">
<apex:param value="{!Today()}"/>
</apex:outputText>

 

 

Prem