DateTime? deliveryDate = (DateTime?)this.View.Model.GetValue("FApproveDate");//审核日期
long leadtime = 20;//天数
if (!deliveryDate.IsNullOrEmpty() && deliveryDate > Convert.ToDateTime("1800-01-01 00:00:01"))
{
DateTime planDeliveryDate = deliveryDate.Value.AddDays(-leadtime);//日期往前
this.View.Model.SetValue("FCloseDate", planDeliveryDate);//计算后日期赋值给界面日期控件
}
标签:控件,插件,01,示例,DateTime,日期,deliveryDate From: https://www.cnblogs.com/lanrenka/p/17803565.html