DaysLeftInMonth Function
Returns the Number of days left in the Month represented by the given Date.

Unit
QESBPCSDateTime

Declaration
Function DaysLeftInMonth(const DT: TDateTime): Byte;

Parameters
DT Date/Time to process.

Category
Date/Time Arithmetic Routines
Month Based Arithmetic Routines

Implementation

function DaysLeftInMonth (const DT: TDateTime): Byte;
begin
     Result := DaysInMonth (DT) - Date2Day (DT);
End;


HTML generated by Time2HELP
http://www.time2help.com