How would I use this to get the month end date? Example if registration_date = 9-15-2017 I would want the due_date to be 10-31-2017.
//Initializing the parameters to be add
$add_days = 0; //adding 30 days
$add_months = 1; //adding nothing to months
$add_years = 0; //adding nothing to years
{due_date} = sc_date({registration_date}, 'yyyy-mm-dd', '+', $add_days, $add_months, $add_years);