how to get server date and time?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / arya
Try following queries
1] get date time
"SELECT NOW()"
2] get time
"SELECT CURTIME()"
3] get date
"SELECT CURDATE()"
Is This Answer Correct ? | 12 Yes | 9 No |
what is the url rewriting?how to rewrite the url? give any example
Can I use php in visual studio?
How to avoid the undefined index error?
How would you determine the size of a file in php?
Is laravel frontend or backend?
Tell me what is htaccess? Why do we use this and where?
What are the file upload settings in configuration file?
am from coimbatore.am learning php&mysql. what will be the approx salary for me if i get a job in coimbatore.
How to read and display a HTML source from the website url?
What is foreach loop in php?
What is php mean?
Do you know what is the difference between the include() and require() functions?