+ Reply to Thread
Results 1 to 3 of 3

Thread: How to substract date? (PHP)

  1. #1
    hipro1 is offline x10Hosting Member hipro1 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    22

    How to substract date? (PHP)

    Well the idea is to substract the joining date of the user to the actual date, and show the result.

    So for example if the user joined on July 22, 2009, print something like "You're 1 day old".

    Of course the joining date would come from the users table.

    Thanks!
    The best programming solution!

  2. #2
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    Re: How to substract date? (PHP)

    have fun =]
    http://www.sajithmr.com/php-time-ago-calculation/
    remember I like +REP

  3. #3
    hipro1 is offline x10Hosting Member hipro1 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    22

    Re: How to substract date? (PHP)

    Thank you very much diabolo, that may help me a lot!
    The best programming solution!

+ Reply to Thread

Similar Threads

  1. Ever Been Suspended For Using PHP?
    By dragoneye_xp in forum Off Topic
    Replies: 26
    Last Post: 08-16-2009, 07:17 PM
  2. php Date()
    By driveflexfuel in forum Programming Help
    Replies: 6
    Last Post: 04-28-2009, 01:25 PM
  3. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 09:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers