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
Vasavi VajinepalliVasavi Vajinepalli 

InvalidDateValue error when setting 12/31/9999 in a Date property

Hi,

Incorrect maxdate. When a date is being set, it is verified against a max date possible and the maxdate value was used to be Dec 31 9999 and the hours,  minutes and seconds value used to be the current time when the server starts. But the maxdate should be "00:00:00 1st Jan 10000" (excluded). Can anyone please help me.

Thanks in advance.
Vasavi
pconpcon
You cannot got past the year 4000 with a Date field.

[1] https://success.salesforce.com/answers?id=90630000000giqGAAQ