すべて、開始フィールドと終了フィールドの日付に基づいて、javascript を使用して整数をフィールドに設定しようとしています。CRM javascript を使用して曜日を見つけるための正しい構文が何であるかさえわかりません。これまでの私のコードは次のとおりです。
function netbdays_change() {
var startday = Xrm.Page.getAttribute("new_quotestart").getValue();
var endday = Xrm.Page.getAttribute("new_quoteend").getValue();
cycletime = endday - startday;
Xrm.Page.getAttribute("new_setcycletime").setValue(cycletime);
}