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 |
How can we encrypt the username and password using PHP?
13 Answers Avaria, HCL, TCS, Xpert,
Code to open file download dialog in PHP?
How do I sort numbers in php?
how to use particular city location in php?
How can we submit a form without a submit buttom?
12 Answers A1 Technology, IBM,
What is the correct syntax of mail() function in php?
What is a PHP Filter?
How can we take a backup of a mysql table and how can we restore it. ?
7 Answers Brain Infosys, Oracle,
How is it possible to know the number of rows returned in the result set?
What is php variable?
What is prepare in php?
Write a program to swap two numbers using php.