首页 > 其他分享 >DevExpress.XtraEditors.DateEdit 设置日期格式

DevExpress.XtraEditors.DateEdit 设置日期格式

时间:2022-10-27 13:34:25浏览次数:40  
标签:FormatType DevExpress dd txtTime yyyy XtraEditors DateEdit Properties

修改一下属性就行

 this.txtTime.Properties.DisplayFormat.FormatString = "yyyy-MM-dd";
 this.txtTime.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
 this.txtTime.Properties.EditFormat.FormatString = "yyyy-MM-dd";
 this.txtTime.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
 this.txtTime.Properties.Mask.EditMask = "yyyy-MM-dd";
 this.txtTime.Properties.Mask.UseMaskAsDisplayFormat = true;

 

 

标签:FormatType,DevExpress,dd,txtTime,yyyy,XtraEditors,DateEdit,Properties
From: https://www.cnblogs.com/xygsj/p/16831894.html

相关文章