参考博客: 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"; 

最新文章

  1. web 前端(轮番插件)
  2. 1.1Axure简介
  3. php 迭代器使用
  4. C# Thread挂起线程和恢复线程
  5. Moto G 通话没声音
  6. Java-异常Throwable,Exception,Error
  7. coco2dx服务器简单例子
  8. Route Filters
  9. MySQL被Oracle并购后的409个日日夜夜
  10. 转 Oracle全文检索http://docs.oracle.com/cd/E11882_01/text.112/e24436/toc.htm
  11. idea中使用scala运行spark出现Exception in thread "main" java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class
  12. java编程规范之java命名规范
  13. 使用httperrequest,模拟发送及接收Json请求
  14. Python系列之内置函数
  15. PostgreSQL自学笔记:6 PostgreSQL函数
  16. The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar报错
  17. [转][easyui]右键菜单
  18. 【C】常用的字符串函数
  19. Linux route
  20. Archlinux下virtualbox报错'/sbin/rcvboxdrv setup'

热门文章

  1. php 获取当前脚本的url的案例
  2. UAPStudio授权过期的解决方法,重新授权
  3. PHP IDE phpstorm 常用快捷键
  4. memcached学习笔记2--安装及命令
  5. Bootstrap页面布局19 - BS提示信息
  6. but this usually doesn’t gain you anything.
  7. Andrew Ng机器学习公开课笔记–Principal Components Analysis (PCA)
  8. spring-3-mvc-hello-world-example
  9. android ListView详解继承ListActivity
  10. [Virtualization][SDN] VXLAN到底是什么 [转]