In reply to Idowu.

The first day of the current month is
FirstDayMonth = intnx('month', Date, 0);
Therefore, the last day of the previous month is
LastDayPrevMonth = intnx('month', Date, 0) - 1;

Similarly, the first day of the previous month is
FirstDayPrevMonth = intnx('month', Date, -1);