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 |
Explain what are some new features introduced in php7?
How can you get web browser’s details using PHP?
How many ways to include array elements in double-quoted strings using php?
List the different types of print functions available in php?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
What are the advantages of stored procedures?
How to call javascript function in php on button click?
What is session and why do we use it?
What is the ioncube php loader?
Which php framework is in demand?
What are string functions?
Which php framework is fastest?