Jump to content

[SOLVED] Time/Date formatting question


CodeMama

Recommended Posts

I need to get this to work, it should print out the date two days from now :

           

 <?php 
                       $startday  = mktime( 0,0,0, date("m") , date("d")+2, date("Y"));
                       echo  ("$startday"); 
                        ?>

 

But this is what I get: $startday = 1234947089

 

So am I doing it wrong, as in those results are garbage ??? or am I missing some code to format it?

Thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/145840-solved-timedate-formatting-question/
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.