Reputation: 155
I want to get yesterday date from the current date in coldfusion.
<cfset yesterday = DateFormat(DateAdd('d',-7,Now()), 'mm/dd/yyyy')>
Upvotes: 1
Views: 1091
Reputation: 318
This is good it should work.
<cfset yesterday = DateFormat(DateAdd('d',-1,Now()), 'mm/dd/yyyy')>
Upvotes: 4