PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How do I access or format the date?


There are a large range of time and date functions in PHP as you would request for something that is often needed to be referenced too.

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

What is a constant in PHP?

how can i put the value 1 or 0 into checkbox if we checked then 1 otherwise 0?

Can PHP create PDF files for me?

What is the differece between $message and $$message?

How do I find the timestamp for a particular date?



Custom Search