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
NPMNPM 

Help with Passing Event Start/End Date/Time to Custom Object Using Custom Button

I have a custom button we use to pass data from Events to a "Registrations" custom object.  It works great.  We want to add passing the Event Start Date/Time and End Date/Time but it seems to pass only the Date, not the time.  Any Ideas or insight you can add would be appreciated.  The applicable code:
Code:
&00N50000001kKSt={!Event.StartDateTime}
&00N50000001kKSy={!Event.EndDateTime}

 Where 00N50000001kKSt is a Registration custom field (Date/Time) called Start and
00N50000001kKSy is a Registration custom field (Date/Time) called End.
 
Only the Date is displayed in Start and End and the error message is :
Error: Invalid Date and Time

Appreciate any help with this.