Skip to main content
The resulting email shows the date, but does not display the time.  I need the recipients to get a Start Time and an End Time...Thanks

 

Kate

 

See below for details:

 

Email Template: 

 

You have been scheduled for and event on : {!Event.ActivityDate} 

 

Subject: {!Event.Subject} 

 

Start Date/Time: {!Event.StartDateTime} 

 

End Date/Time: {!Event.EndDateTime} 

 

Location: {!Event.Location} 

 

Event Duration: {!Event.DurationInMinutes} 

 

Description: {!Event.Description} 

 

For more details on this event please click: {!Event.Link}

 

Resulting Email:

 

To: Kate Walsh;

 

You have been scheduled for and event on : 7/7/2016

 

Subject: WO-00041253

 

Start Date/Time: 7/7/2016

 

End Date/Time: 7/7/2016

 

Location: Kate Walsh Field Acct

 

Event Duration: 240

 

Description: Testing Email Template

 

For more details on this event please click: https://na12.salesforce.com/00UU0000018LhIB

 

 
11 answers
  1. Nov 10, 2017, 5:27 AM
    Hi Kate Walsh ,

     

        Try this.

     

        {!DATETIMEVALUE(Event.StartDateTime)}

     

        
  2. Feb 16, 2018, 9:58 PM
    This also works: {!Event.StartDateTime + 0}
  3. Oct 20, 2020, 2:50 PM

    To display only the time, use:

    {!LEFT(TEXT(TIMEVALUE(Event.StartDateTime)),5)}

    This converts the TimeValue (“HH:MM:

    SS.MS”) to text then uses just the leftmost 5 characters.
  4. Nov 13, 2017, 8:34 AM
    @Jim Kacerguis

     

    Yes "DATETIMEVALUE" will always work.This method provided by salesforce itself
  5. Nov 10, 2017, 4:47 PM
    @Ajay,

     

    That seems to work, but I don't understand why?  Is StartDateTime a date/time field?  Also, will this always work (i.e. it will still display the correct time for DST changes?)
0/9000