Delphi returns the first day of the current year according to the specified date

From , 3 Years ago, written in Delphi (Object Pascal), viewed 223 times.
URL https://pastebin.vip/view/f0467e85
  1. function DateYearStart(const DT: TDateTime): TDateTime;
  2. var
  3.   Year, Month, Day: Word;
  4. begin
  5.   SysUtils.DecodeDate(DT, Year, Month, Day);
  6.   Result := SysUtils.EncodeDate(Year, 1, 1);
  7. end;

Reply to "Delphi returns the first day of the current year according to the specified date"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website