+ Start a Discussion

Subtract Date

Is there a way to subtract 30 days from a date field in a Visualforce email template?  I have a close date that I want to subtract 30 days from.



Best Answer chosen by Admin (Salesforce Developers) 

You should just be able to use a simple formula for this.  Something like:



{!MyObj.My_Date__c - 30}


replace MyObj.My_Date__c with your date field.