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 is php session id?

985


What is xss in php?

1004


Tell me what is the difference between the functions strstr() and stristr()?

1054


How do you compare strings in java?

924


How do you remove whitespace from the beginning and end of a $string variable?

992


Do you have to initialize variables in php?

960


How many different types of messages available in php?

1000


Is jquery better than javascript?

978


What's the difference between using mysql_ functions and pdo?

1156


Is php outdated 2019?

948


What is a base url?

929


Is nan in php?

1043


Does php support multithreading?

1057


What language is php based on?

957


what is CURL?

1023