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

How to display datetime in the subject of visual force email template



i am getting only date even if i assign the datetime field in the subject of visual force template.


<messaging:emailTemplate subject="{!relatedTo.Start__c} recepientType = "Contact"  relatedToType="CC_Appointment__c">


but i am getting only date not time in the email.



please help me.

John L.John L.

Use the Global Function {!NOW()}. For more information, follow this link:


and go to page 104, in the Appendix on Global Variables, Functions, and Expression Operators.


(Note: the template must be a VisualForce-type template)

Message Edited by John L. on 05-05-2009 12:23 PM