如何将DX的TextEdit格式化为时间格式

            this.txtDAC005.Name = "txtDAC005";
            this.txtDAC005.Properties.DisplayFormat.FormatString = "yyyy-MM-dd";
            this.txtDAC005.Properties.EditFormat.FormatString = "yyyy-MM-dd";
            this.txtDAC005.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
            this.txtDAC005.Properties.Mask.EditMask = "yyyy-MM-dd";
            this.txtDAC005.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.DateTime;
            this.txtDAC005.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.txtDAC005.Properties.ReadOnly = true;
            this.txtDAC005.Size = new System.Drawing.Size(136, 21);

你可能感兴趣的:(text)