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() {
parent.frames.location.replace("/00U/e?retURL=%2F{!Event.Id}&what_id={!Event.Id}&evt5=NM&RecordType=01230000000DEC6&evt5={!Event.Subject}&00N300000013KTS={!Event.Subject_Score__c}&00N300000013Wpk={!Event.Contact_Score__c}&evt6={!Event.Description}&evt4+{!Event.ActivityDate}&evt13=12:00AM")
}
redirect();

</script>
 
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.
 
Thanks!
 
-Maria
SumeetSumeet

Try This for time

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

For Date

DATEVALUE( Event.ActivityDateTime)

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