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
mallikharjunarao gundamallikharjunarao gunda 

Edit the created date field on visualfore page

 hai hall 
 i need to edit the created date field on the vf page through apex class query
AshlekhAshlekh
Hi,

Created Date field is system field on a object so you can't change it. It is readonly field as per documentation.

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/system_fields.htm

CreatedDate field is only editable in TestClasses not in real.

-Thanks
Ashlekh Gera