You need to sign in to do that
Don't have an account?
O2O Simon
Problem with date
Dear all,
When i insert an event by the below code :
Contact c = [select id from Contact where Email = 'peterchan@hotmail.com'];
Event event1 = new event(subject='call', whoid=c.id, DurationInMinutes=60, ActivityDateTime=2008-12-01T12:00:00Z);
insert event1;
I got this error :
Error: Compile Error: unexpected token: 2008-12-01T12:00:00Z at line 14 column 137
Could anyone tell me what's wrong with the date?
Thank you very much
Thank you very much
Ron Hess
here is an example, note i had to take out the "T" and remove the Z, to match what valueof expects
Code: