Jump to content

[SOLVED] counting weeks?


php_b34st

Recommended Posts

if you convert each date to a timestamp and subtract the earlier one from the later one, that will give you the number of seconds between the dates. you can then divide by 60 for minutes, 60 again for hours, 24 for days, then 7 for weeks between. i'd probably use mktime() or strtotime() to make the timestamps.

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.