标签:
参考博客: DevExpress的DateEdit设置显示日期和时间
this.datBeginTime.Properties.VistaEditTime = DevExpress.Utils.DefaultBoolean.True; this.datEndTime.Properties.VistaEditTime = DevExpress.Utils.DefaultBoolean.True; this.datBeginTime.Properties.VistaDisplayMode = DevExpress.Utils.DefaultBoolean.True; this.datEndTime.Properties.VistaDisplayMode = DevExpress.Utils.DefaultBoolean.True; this.datBeginTime.EditValue = DateTime.Now; this.datEndTime.EditValue = DateTime.Now; this.datBeginTime.Properties.DisplayFormat.FormatString = "yyyy-MM-dd HH:mm:ss"; this.datBeginTime.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; this.datBeginTime.Properties.EditFormat.FormatString = "yyyy-MM-dd HH:mm:ss"; this.datBeginTime.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime; this.datBeginTime.Properties.Mask.EditMask = "yyyy-MM-dd HH:mm:ss"; this.datEndTime.Properties.DisplayFormat.FormatString = "yyyy-MM-dd HH:mm:ss"; this.datEndTime.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; this.datEndTime.Properties.EditFormat.FormatString = "yyyy-MM-dd HH:mm:ss"; this.datEndTime.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime; this.datEndTime.Properties.Mask.EditMask = "yyyy-MM-dd HH:mm:ss";
标签:
原文地址:http://www.cnblogs.com/bmbh/p/4843269.html