Jump to content

[SOLVED] mktime and date


jwk811

Recommended Posts

	$yesterday = date('Y-m-d H:i:s', mktime(0,0,0, date('m'), date('d') - 1, date('Y')));

 

this gets a date like this 2009-12-12 00:00:00 how can i show the time too. i want yesterday exactly. it only worked with an error

 

Warning: Wrong parameter count for mktime() in /home/content/p/o/k/pokher366/html/members/library/functions.php on line 132

 

that was when i added another 0 and put date(H) at the end

Link to comment
https://forums.phpfreaks.com/topic/158418-solved-mktime-and-date/
Share on other sites

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.