The Perfect Day

分享技术,编写未来

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
this.textEdit1.Properties.EditFormat.FormatString = "yyyy-MM-dd";
this.textEdit1.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
this.textEdit1.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.RegEx;
this.textEdit1.Properties.Mask.EditMask = "\\d{2}\\d{2}?-([0]?[1-9]|10|11|12)-(0?[1-9]|[12]\\d|30|31) (([01]?[0-9]|2[0-3])(:[0-" +"5]\\d)?)?";
//"\\d{2}\\d{2}?-([0]?[1-9]|10|11|12)-(0?[1-9]|[12]\\d|30|31)";
this.textEdit1.Properties.Mask.ShowPlaceHolders = false;
posted on 2009-09-25 15:09  StephenJu  阅读(615)  评论(1编辑  收藏  举报