Hi,
What you are asking for is probably an unsupported feature,
Supported way to accomplish your requirement is to add a JavaScript function which would validate the date.
var crmDate = Xrm.Page.getAttribute("new_datefield").getValue();
var today = new Date();
if(crmDate < today || crmDate > today){
alert("Invalid date");
Xrm.Page.getAttribute("new_datefield").setValue(today);
}
Hope this helps,
Regards,
Darrel
Please mark as helpful or mark as answer if the solution has helped you,