Hello,
I thought that it's possible to
use calculated fields for your requirement but I don't see easy way of describing of formula.
Actually there are only 2 target date available:
March 31 for usual year and March 30 for leap year
So you can use is following onload script:
var currentYear = (new Date()).getFullYear();
var resultDate = new Date(currentYear, 2, 31);
if (currentYear % 4 === 0){
resultDate.setDate(30);
}
Xrm.Page.getAttribute("constant field name").setValue(resultDate);
Dynamics CRM MVP
Read My blog
Subscribe for one of my courses