Last day of month...11 months ago
Content
I need to pull leads created 11 months ago in May 2019. The current month is April of 2020 so I need to pull leads created in May of 2019.
The expression works below on the lead creation date by getting me the first day of the month 11 months ago (May 1 2019).
TIMESTAMPADD(SQL_TSI_MONTH, -1, TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE))
Now I need to add another expression to get the last day of the month 11 months ago (May 31 2019).
Any suggestions? Thanks
Tagged:
1