+ Start a Discussion
SahajSahaj 

Hard code createddate value

Hi All,

How can i hardcode createddate(standard field) value in my trigger. PFB  code but i am getting an unexpected token error.
 
incident.Createddate>2013-19-12T11:30:40.000Z

 
Best Answer chosen by Sahaj
anto nirmalanto nirmal
Hi Sahaj,

Can you please try this?
Datetime myDateTime = DateTime.parse('10/14/2011 11:46 AM');

Incident.Createddate > myDateTime

Let me know if this helps.

As a common practice, if your question is answered, please choose 1 best answer.
Additionally you can give every answer a like if that answer is helpful to you.

Regards,
Anto Nirmal

 

All Answers

anto nirmalanto nirmal
Hi Sahaj,

Can you please try this?
Datetime myDateTime = DateTime.parse('10/14/2011 11:46 AM');

Incident.Createddate > myDateTime

Let me know if this helps.

As a common practice, if your question is answered, please choose 1 best answer.
Additionally you can give every answer a like if that answer is helpful to you.

Regards,
Anto Nirmal

 
This was selected as the best answer
SahajSahaj
Thanks alot.It helped