SugarLogic Custom Function subDate()

sugarcrmdevelopers —  December 14, 2012

Last week I realized that SugarCRM’s awesome Sugar Logic feature, used for forcing fields to calculate a value rather then present a data-entry field, lacked a Date-Diff type of function. PHP has one, as does MySQL and T-SQL, why not Sugar Logic?

Being heavily customizable and extendible, I built one.. With this single file and a repair-and-rebuild, the function immediately became available for use with Sugar Logic formula builder. And life was good.