function LastDayCurrMon: TDate; begin result := EncodeDate(YearOf(Now),MonthOf(Now), DaysInMonth(Now)) ; end;