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
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