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
rob3000rob3000 

copy date/time fields

I try to copy Event.StartDateTime and Event.EndDateTime to custom date/time fields with javascript, but I receive an error "Error: Invalid Date and Time". What am I doing wrong?

rob3000rob3000

Thanks; but the link you posted does not help me with my problem. Let me be more specific:

 

This is my custom button javascript which creates a new object out of an event:

 

/a0M/e?retURL={!Event.What}&CF00N20000002tGRM={!Account.Name}&CF00N20000002tGRM_lkid={!Account.Id}&00N20000002tLH8={!Event.Location}&Name={!Event.Subject}&00N20000002tJEg={!Event.StartDateTime}&00N20000002tJF0={!Event.EndDateTime}&00N20000002tJAo={!Event.Description}&{!Event.Who}&CF00N20000002tJAe={!Contact.Name}&00N20000002tJAe_lkid={Contact.Id}

 

00N20000002tJEg = Start_Date__c (field type: DateTime)

00N20000002tJF0 = End_Date__c  (field type: DateTime)

 

For both fields I receive this error message: "Error: Invalid Date and Time". The date shows up in the new field though, but not the time.

 

gpuvianigpuviani

I have the same problem, any help would be greatly appreciated.

 

/a00/e?
00NQ0000001Ckgb={!Event.Subject}&
00NQ0000001Ckgl={!Event.Location}&
00NQ0000001Ckgg={!Event.Description}&
00NQ0000001Ckgq={!Event.Type}&
00NQ0000001Ckgv={!Event.StartDateTime}&
00NQ0000001Ckgr={!Event.EndDateTime}&
00NQ0000001CkiX={!Event.Id}&
CF00N30000009pbK7_lkid={!Event.What}&
CF00N30000009pbK7={!Event.What}
&retURL={!Event.Id}

gpuvianigpuviani

I have the same problem, any help would be greatly appreciated.

 

/a00/e?
00NQ0000001Ckgb={!Event.Subject}&
00NQ0000001Ckgl={!Event.Location}&
00NQ0000001Ckgg={!Event.Description}&
00NQ0000001Ckgq={!Event.Type}&
00NQ0000001Ckgv={!Event.StartDateTime}&
00NQ0000001Ckgr={!Event.EndDateTime}&
00NQ0000001CkiX={!Event.Id}&
CF00N30000009pbK7_lkid={!Event.What}&
CF00N30000009pbK7={!Event.What}
&retURL={!Event.Id}

 

Thanks!