I am trying to display the date in this format
mm/dd/yyyy hh:mm:ss
but with no luck, anyone has expirience with formating the date function?
Trouble with date function
Moderator: General Moderators
Check this out: http://us2.php.net/manual/en/function.date.php
Cool , thanks!
Mistake was not placing the formating in the ""
like
Mistake was not placing the formating in the ""
like
Code: Select all
echo date("m/d/Y H:i:s");ohhh man
Now the main question , how can i display a date that's 7 days from now?
i cant figure out how to do it with mktime()
Code: Select all
print(date("m/d/Y H:i:s",mktime(0,0,0,0,(0 + 7),2006)));Re: ohhh man
Then don'tMilan wrote:i cant figure out how to do it with mktime()
Code: Select all
echo date("m/d/Y H:i:s", strtotime("+1 week"));