Jump to content

[SOLVED] Simple date question


spires

Recommended Posts

I am assuming (even though I should not) that if you do not supply a timestamp, the date function automatically uses the current time?

 

You are correct.

 

Returns a string formatted according to the given format string using the given integer timestamp  or the current time if no timestamp is given. In other words, timestamp  is optional and defaults to the value of time().

 

So theoretically you could just say

<?php echo date("jS F y"); ?>

for the same effect as formatting the time right now.

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.