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 |
How does php work with apache?
How can you send email in php?
Tools used for drawing er diagrams?
What is the method to register a variable into a session?
What websites use php?
How can a cross-site scripting attack be prevented by php?
What is a composer?
What is use of mysqli_query in php?
How can we send mail using JavaScript?
How to use http headers inside php?
how can i find number of rows in a table using MS Access and php? i used odbc_num_rows($query); but it returned -1.
What is the difference between apache vs niginx?