how to get server date and time?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between session and cookies in php?

510


What are the file upload settings in configuration file?

537


How to join multiple strings into a single string?

530


What is regex in html?

517


Explain how does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?

515






What is a query in php?

478


What is the function in PHP do not return a timestamp?

572


How to remove the new line character from the end of a text line?

517


Can you use both this () and super () in a constructor?

546


How do I find environment variables?

513


How do I debug php?

530


What are the different ways to login to a remote server?

483


What is the current php version?

556


Is php worth learning in 2019?

515


What is the difference between session_unregister() and session_unset()?

577