Welcome Guest, Not a member yet? Register   Sign In
Howto; Date of x-days ago
#2

[eluser]Pascal Kriete[/eluser]
Two that immediately come to mind:
Code:
$option_one = strtotime("-26 days");
$option_two = time() - 60 * 60 * 24 * 26

That'll give you the timestamp, and then use another function (date()) to format it.


Messages In This Thread
Howto; Date of x-days ago - by El Forum - 07-31-2008, 01:20 PM
Howto; Date of x-days ago - by El Forum - 07-31-2008, 01:30 PM
Howto; Date of x-days ago - by El Forum - 07-31-2008, 01:32 PM
Howto; Date of x-days ago - by El Forum - 07-31-2008, 01:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB