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
IKON MariaIKON Maria 

Help with Custom Clone Event (evt13)

I am trying to isolate the time part of the Event Date Time Field (evt13). 
<script language="JavaScript">
function redirect() {

I would like evt13 to be the time of the previous event (I am creating a custom Clone Event button).  Any help is greatly appreciated.

Try This for time

{!SUBSTITUTE(SUBSTITUTE( TEXT(Event.ActivityDateTime) , TEXT(DATEVALUE( Event.ActivityDateTime)), ""),":00Z"," PM")

For Date

DATEVALUE( Event.ActivityDateTime)

This may change the time to GMT so you need to convert it