Jump to content

Compare Two Dates.


adilamarwat

Recommended Posts

  1. Use mktime() to create a timestamp for the dates you want to compare.
  2. Subtract the smaller timestamp from the greater one.
  3. Usedate() to obtain the values for years, days, and months of the resulting timestamp.
  4. Put these values into a string and display it on the page.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...