随笔分类 -  Delphi-Time

摘要:Delphi DateTime,Date,Time TDateTimePickerDateTimeDateTimeDateTimePicker一、DateTime,Date,Time存储方式本质上也是以double来存储的。用整数部分表示日期,小数部分表示时间。可看我另外一篇“access 中“日期... 阅读全文
posted @ 2014-07-02 22:37 findumars 阅读(4740) 评论(0) 推荐(1) 编辑
摘要:解决Raize日历控件显示的问题近自己的程序被测试人员发现一个小问题,就是程序中的日历选择框,显示中的“星期一、星期二。。。。”都显示成了“星。。。。。”,我自己看了代码,原来是raize的控件问题,并且无论用4.x版本还是5.x版本,问题都依然存在。没办法,就在网上找找看,结果还是找到了,原来需要... 阅读全文
posted @ 2013-07-28 18:51 findumars 阅读(1591) 评论(0) 推荐(0) 编辑
摘要:引用cxFormats单元: ShortDateFormat := 'dd/mm/yyyy'; DateSeparator := '/'; cxFormatController.UseDelphiDateTimeFormats := True;在cxGridStrs.pas文件里... 阅读全文
posted @ 2013-07-15 03:31 findumars 阅读(2476) 评论(0) 推荐(0) 编辑
摘要:在某些情况下,需要将日期字段的值置空,这种操作比较麻烦。在操作的时候,可将变量的值(t:TDateTime)设置为0,在操作的过程中进行判断,当t的值为0或-1的时候,时间值为1899年的Delphi日期最小值,如果使用SQL设置日期的空值,可直接用:update [table] set dt=nu... 阅读全文
posted @ 2013-07-08 08:32 findumars 阅读(2412) 评论(1) 推荐(0) 编辑
摘要:unit DateUtils;interfaceuses SysUtils, Math, Types;// 把完整时间分解成日期和时间两部分function DateOf(const AValue: TDateTime): TDateTime;function TimeOf(const AValu... 阅读全文
posted @ 2012-02-10 05:22 findumars 阅读(28153) 评论(0) 推荐(0) 编辑