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 chrome logger?
Whether One-line comment begin with pound sing(#) in php?
Difference among echo, print and printf.
When you will get the error "Cannot add header information"?
What is the use of trim function in php?
what is the post and get method??
What is difference between isset and empty in php?
What is composer install?
What is the use of ajax in php?
What is the function of mysql_real_escape_string in php?
What is Type hinting in PHP?
Which function Returns the time of sunrise for a given day / location in PHP.