Jump to content

[SOLVED] php date


dg

Recommended Posts

date("d-m-Y", mktime($hour, $minute, $second, $day, $year, $month));

 

@ignace

your args are in the wrong order. See

 

mktime() reference: http://be.php.net/manual/en/function.mktime.php

 

So this would do it too

echo date("d-m-Y", mktime(0, 0, 0, 1, $dayOfYear+1, $year));

Link to comment
https://forums.phpfreaks.com/topic/116955-solved-php-date/#findComment-601509
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.