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 |
Make a "dynamic drop down list" with using only PHP,HTML and MySQL..
What is var_dump?
How many requests will be send to server and response coming from server when you open a web page (e.g. xyz.php) which has an image tag?
What are the advantages of indexes in php?
What are the two main string operators?
What is laracast?
What is the difference between php 5 and php 7?
how can i develop forum code? any one pleale help me on this question
Explain what does $_files means?
hi i am complted my b.tech and i want to learn php is php is good for my career and i want to know the salary growth on php any one can tell the answer plz and i am learning php myself it is easy to understand..........
How do I clear my browser session?
Why do we need session?