[Delphi (Object Pascal)] delphi根据日期返回所在季度 →→→→→进入此内容的聊天室

来自 , 2021-03-27, 写在 Delphi (Object Pascal), 查看 106 次.
URL http://www.code666.cn/view/9f8785c7
  1. function DateQuarter(const D: TDateTime): Byte;
  2. var
  3.   Year, Month, Day: Word; // year, month and date components of D
  4. begin
  5.   SysUtils.DecodeDate(D, Year, Month, Day);
  6.   Result := 4 - ((12 - Month) div 3);
  7. end;
  8. //delphi/2162

回复 "delphi根据日期返回所在季度"

这儿你可以回复上面这条便签

captcha