format mysql yyyymm
select billing_month, DATE_FORMAT(now(), "%Y%m") as current_month, period_diff(DATE_FORMAT(now(), "%Y%m"), billing_month) as months from test
Crazy Curlew