Answer Posted / amol
By Using function Date in php
Definition and Usage
The getdate() function returns an array that contains date
and time information for a Unix timestamp.
The returning array contains ten elements with relevant
information needed when formatting a date string:
* [seconds] - seconds
* [minutes] - minutes
* [hours] - hours
* [mday] - day of the month
* [wday] - day of the week
* [year] - year
* [yday] - day of the year
* [weekday] - name of the weekday
* [month] - name of the month
| Is This Answer Correct ? | 16 Yes | 6 No |
Post New Answer View All Answers
Why is node js better than php?
How can we display the output directly to the browser?
Tell me how to retrieve a cookie value?
Do I need apache for php?
Explain briefly about a search-friendly site looks like?
What is the difference between public, protected and private?
What do you mean range() in php?
How many types of array are there in php?
What is the use of session and cookies in php?
Tell me are parent constructors called implicitly inside a class constructor?
Differences between get and post methods?
What are php applications?
What does $_env means?
Do you know when sessions ends?
What's the best method for sanitizing user input with php?