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 restful api?
What is the function in PHP do not return a timestamp?
How can you "tell" MySQL server to cache a query?
What is the purpose of break and continue statement?
Explain include(), include_once, require() and require_once?
How to write php function in html onclick?
What is serialization in php?
How do you format and output a number with leading zero's?
What are psrs? Choose 1 and briefly describe it?
What is meant by public, private, protected, static and final scopes?
What are the basic steps to store PHP session in to Database?
What is difference between mysqli and mysql?