The PHP Date() Function

The PHP date() function formats a timestamp to a more readable date and time.

A timestamp is a sequence of characters, denoting the date and/or time at which a certain event occurred.


date(format,timestamp)


PHP Date() - Format the Date

The required format parameter in the date() function specifies how to format the date/time.

Here are some characters that can be used:

d - Represents the day of the month (01 to 31)
m - Represents a month (01 to 12)
Y - Represents a year (in four digits)

views : ( 760 )

Share This :  

 

Login To Post Your Feedback

Username  :

ex : johnpeter
Password  :

password must have min 6 chars
     

  Subscribe to get alerts on scripts of this category
Email Id
Category