SEARCH:
Previous: dMonFromNum Next: dEnsureTS

dMonthEnd

unix_ts/String Start Date
int Months
unix_ts End Date

Accepts a given date, and returns the last day of the month that includes "Months" number of months. Passing in '1/1/2007' and '1' returns '1/31/2007'. Passing in '6/1/2007' and 3 returns '8/31/2007'.

Useful for building SQL queries that include ranges of dates.

The first parameter can either be a unix ts or a string that will successfully convert to a unix ts, such as '1/1/2007' or '2007-01-01'.

Previous: dMonFromNum Next: dEnsureTS