How do I access or format the date?
If you want to get and print out the date, there are various ways of doing this, for instance using the date function itself.
Unfortunately, there are a huge number of parameters that can be passed corresponding to what information you require - e.g. the hours, minutes, seconds and how you want them all to be formatted.
It is almost impossible to remember all of these apart from the most common ones, and it is a sizeable list.
Therefore you should really read the comprehensive information about time and date functions on the PHP.net site; here is the information for the date function:
http://uk2.php.net/date
Comment on this Question and Answer >>>
ASK A QUESTION
More other PHP Questions
How do you get an array of the date and time?How can I stop my PHP script timing out?
What is the differece between $message and $$message?
How do I check if a date entered exists?
How do I find the timestamp for a particular date?
