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
GABRIEL SILVAGABRIEL SILVA 

How works the endDate field in Contract?

Good afternoon,

I need to know how works the endDate field in contract. If i the startDate = "01/12/2016", the endDate will be "31/12/2016". If i the startDate = "30/11/2016", the endDate will be "29/12/2016".  Why "29/12/2016"?
V V Satyanarayana MaddipatiV V Satyanarayana Maddipati
Hi Gabriel,

End Date on Contract Object will depend on the Contract Term (months) field, which is an integer field to specify the number of months that the contract is valid. Indeed the formula is below : EndDate = StartDate + (ContractTerm * 30) 

Thanks,
Satya.
GABRIEL SILVAGABRIEL SILVA
I thinked this too, but when i chose the startDate "01/12/2016" and Contract Term "1" (1= 30 days), the endDate changed to "31/12/2016". Until here, ok! After, i changed the startDate to "30/11/2016" (one day before than the last exemple) and Contract Term is the same ("1"), the endDate changed to "29/12/2016" (two days before than the last exemple). Why it happen? Why the endDate changed to "29/12/2016" than chage to "30/12/2016"?