Dev DateEdit控件格式设置

设置日期显示格式: 设置三个属性(显示时、编辑时)

    dtPubDate.Properties.DisplayFormat.FormatString = "yyyy-MM-dd"; //"yyyy-MM-dd HH:mm";  
            dtPubDate.Properties.EditFormat.FormatString = "yyyy-MM-dd";
            dtPubDate.Properties.Mask.EditMask = "yyyy-MM-dd";                    

不允许清空:   

     dtPubDate.Properties.AllowNullInput=False;

原文地址:https://www.cnblogs.com/mol1995/p/8728044.html