added support of sugarjs Date.format function