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?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does addslashes do in php?

1109


How do you parse and process html/xml in php?

1072


What is difference between compile time and run time polymorphism?

1053


Is empty function c++?

1004


What is difference between session and cookies in php?

1001


What is a string in php?

1040


Is php better than java?

1023


What is the basic function to search files for lines (or other units of text) that contain a pattern.

1033


Which is faster for or foreach php?

1000


What is the best php version for wordpress?

1177


Are there regular expressions in php?

991


How can I convert ereg expressions to preg in php?

1029


How is session id stored in browser?

1056


What should we do to be able to export data into an excel file?

1068


What is difference between include and include_once in php?

983