PHP SNIPPET

Get current date and time in different formats using php




One of the most commonly used PHP function is date(). Using this snippet you can get current date and time in different formats using PHP.

To get current date in different format use the snippet below. For more date formats see php.net and w3schools.

To get current time in different format use the snippet below. For more time formats see here.







Leave a Reply

Your email address will not be published. Required fields are marked *