SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Apr 2005
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Adding value to date to get a date

    For example if I want to input activation date(or credit that determines date of expiration) of my prepaid cell phone card, and based on that and current date php script calculates what is the expiration date.
    example:
    50$ equals 100 days of my prepaid cell card,and based on that and the current date, what is the date when my prepaid card expires?

    Any ideas are welcome.
    Thanks.

  2. #2
    Tranceoholic lilleman's Avatar
    Join Date
    Feb 2004
    Location
    Írebro, Sweden
    Posts
    2,716
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    $expires date('Y-m-d'strtotime('+100 days')); 
    ERIK RIKLUND :: Yes, I've been gone quite a while.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •