Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to get server date and time?

Answers were Sorted based on User's Feedback



how to get server date and time?..

Answer / n.k.k

using date function date();

Is This Answer Correct ?    49 Yes 20 No

how to get server date and time?..

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

how to get server date and time?..

Answer / raja

$timestamp = time();
$datum = date("Y-m-d (D) H:i:s",$timestamp);
echo "Current date and local time on this server is $datum
<br>\n";

Is This Answer Correct ?    14 Yes 7 No

how to get server date and time?..

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 to get server date and time?..

Answer / selc_sekar

$date1=date("h-i-s");

Is This Answer Correct ?    14 Yes 13 No

how to get server date and time?..

Answer / selva

date("h-i-s");

Is This Answer Correct ?    7 Yes 7 No

how to get server date and time?..

Answer / guest

using $_SERVER['REMOTE_ADDR']

Is This Answer Correct ?    9 Yes 13 No

how to get server date and time?..

Answer / rajasekar

using $_SERVER['REMOTE_ADDR']

Is This Answer Correct ?    6 Yes 13 No

how to get server date and time?..

Answer / agila

now();

Is This Answer Correct ?    17 Yes 26 No

how to get server date and time?..

Answer / kiran

time()[TIME STAMP]

Is This Answer Correct ?    7 Yes 29 No

Post New Answer

More PHP Interview Questions

How can we optimize or increase the speed of a mysql select query?

6 Answers  


What is indexing how many types?

3 Answers   DLF, Infosys, Net Solution, Vcare,


How to check a variable is array or not in php?

0 Answers  


What is a php certification?

0 Answers  


Explain some of the php string functions?

0 Answers  


Is empty check in php?

0 Answers  


What is put method in php?

0 Answers  


What is php compared to html?

0 Answers  


What are differences between PECL and PEAR?

0 Answers  


Create a PHP web script with the following attributes: on start, three HTML form elements are shown: an string input field, a checkbox field, a dropdown/pull down list with 5 elements and a submit button. On submission, the form should be redisplayed (while remaining all options/inputs as the user has selected/entered them). Additionally, the selections/inputs of the user should be displayed in text. Please solve this without the use of any external libraries.

1 Answers   Wipro,


what do you mean by php.ini file ?????????

2 Answers   Samsung,


What are Routines?

0 Answers  


Categories