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 a stored procedure in mysql?
How to close a session properly?
Name some of the constants in php and their purpose.
How will you calculate days between two dates in PHP?
Is php faster than nodejs?
How data or variable can be receive or send from PHP to HTML page??
What is http php?
Explain what are some new features introduced in php7?
Who is the father of PHP and explain the changes in PHP versions?
13 Answers Befree, iMark Group, Netizen,
write the function to fetch a image from mysql databases (datatype blob).
What is php constructor?
What does PHP stand for?