摘要://取当月的第一天function TDealWithXML.FDOM(Date: TDateTime): TDateTime;var Year, Month, Day: Word;begin DecodeDate(Date, Year, Month, Day); Result := Enco...
阅读全文
posted @ 2015-05-26 18:35
|
||
随笔分类 - Delphi 日期函数
摘要://取当月的第一天function TDealWithXML.FDOM(Date: TDateTime): TDateTime;var Year, Month, Day: Word;begin DecodeDate(Date, Year, Month, Day); Result := Enco...
阅读全文
posted @ 2015-05-26 18:35
摘要:NthDayOfWeek计算并返回指定日期是该月第几周Unit:DateUtilsfunctionNthDayOfWeek(constAValue: TDateTime): Word;Example:UsesSysUtils,DateUtils;Begin Write('Today is the '...
阅读全文
posted @ 2015-05-26 18:09
|
||