var
FirstDay, LastDay: TDateTime;
begin
FirstDay := StrToDate(FormatDateTime('yyyy-MM-01', Now));
LastDay := IncMonth(FirstDay) - 1;
ShowMessage(FormatDateTime('yyyy-MM-01', Now)); //本月第一天
ShowMessage(FormatDateTime('yyyy-mm-dd',IncMonth(FirstDay) - 1)); //本月最后一天
end;