Product Expiration Date: Last Day of Month

Discussion in 'Customization & add-ons' started by aacadmin, Jul 3, 2008.

  1. aacadmin

    aacadmin New Member

    Joined:
    Dec 5, 2007
    Messages:
    6
    All of our client's memberships are set for 1 year logically sets the expiration date as one year from today.

    I need for the expiration date to be the last day of whatever month the normal membership would expire.

    Example:
    My Enrollment Date: 07/03/2008
    Default Exp Date: 07/03/2009
    Needs to be: 07.31.2008

    Example #2:
    My Other Enrollment Date: 02/15/2008
    Default Exp. Date: 02/15/2009
    Needs to be: 02/28/2009 [leap years like 08 must be observed]


    This may be assumed, but the new 'last day of the 12th month expiration date must be consistently associated with the user - meaning note just show the date on the website but ensure that date is also stored in database.

    Ideas?

    Thanks for anyone's direction.
  2. scott_wa1

    scott_wa1 aMember Pro Customer

    Joined:
    Aug 22, 2006
    Messages:
    62
    Off the top of my head I would say that when you get a new member, you could manually adjust their account to the correct expiration date, assuming that amember is controlling the rebill (like authorize.net) and not a thirdparty like PayPal...

    -Scott

Share This Page