page
<apex:variable value="{!activity}" var="act">
<apex:outputText value="{0,date,h:mm a}">
<apex:param value="{!act.Date__c}" />
</apex:outputText>
controller..
public list <Activity__c > activity {get;set;}
public GenerateInvoiceController(){
activity= [SELECT Id, Name, Date__c, Quantity__c,
Activity_Lookup_Name__c, Day__c,
Unit_Price__c ,
Guest_Notes__c, Inhouse_Notes__c
FROM Activity__c
WHERE Reservation__c =: reservationId];
}
Right now I have this code for displaying time. One problem is that it has to show pacific time all the time.(not user's current timezone.)
Any suggestions?
Thank you in advance
dateGMT()
andtimeGMT()
to get the GMT components of date and time into one or two properties (Either Date and Time or String properties), then display the properties instead of the field itself. – David Cheng Sep 29 '18 at 5:10