• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

Calculate date

Hi,

Post date: #DateFormat(AdsDate, "mm-dd-yyyy")#

Expire date: (here I have to put on what date it will expire)

Post date is the date when the user placed an ad

I need to add 30 days from the #AdsDate# that's when the ad will expire.

the ad should expire within 30 days

how am I going to do it?


0
lulu50
Asked:
lulu50
1 Solution
 
gdemariaCommented:
Add 30 days like this..

<cfset expireDate = dateAdd("d",30,adsDate)>
0
 
lulu50Author Commented:
Thanks
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now