how many ways we get current date in php

Answers were Sorted based on User's Feedback



how many ways we get current date in php..

Answer / swapna

$date_time = date('Y-m-d H:i:s'); use this one you can get
current date.

Is This Answer Correct ?    88 Yes 28 No

how many ways we get current date in php..

Answer / rohit

echo date("d-M-Y",time());

Is This Answer Correct ?    51 Yes 9 No

how many ways we get current date in php..

Answer / swapna

CURRENT_TIMESTAMP

Is This Answer Correct ?    33 Yes 21 No

how many ways we get current date in php..

Answer / rakesh dongarwar

echo $date = date("d/m/Y");

Is This Answer Correct ?    13 Yes 4 No

how many ways we get current date in php..

Answer / susmitha

$current_date=date('Y-m-d')

Is This Answer Correct ?    3 Yes 2 No

how many ways we get current date in php..

Answer / mahesh

$date = getdate()
Here $date prints as an Array.with current date and Time

Is This Answer Correct ?    24 Yes 25 No

how many ways we get current date in php..

Answer / l santosh

$date=date('Y-m-d H:i')

Is This Answer Correct ?    4 Yes 5 No

how many ways we get current date in php..

Answer / divyeshnimavat

$currtime = time();

Is This Answer Correct ?    17 Yes 19 No

how many ways we get current date in php..

Answer / tasimkhan

$date = date('d-M-Y H:i:s', strtotime(time(0))

Is This Answer Correct ?    4 Yes 7 No

Post New Answer

More PHP Interview Questions

What are php errors?

0 Answers  


What is the difference between echo print and print_r in php?

0 Answers  


What is in php 7?

0 Answers  


How can we extract string ?allinterview.com ? from a string ?http://info@allinterview.com? using regular expression of PHP?

6 Answers  


How i can integrate merchant payment get way in zen cart? in php? plz help me

1 Answers   BA Continnum Solutions,


how to maintained the session from one page to another page based on the url and then entered into the first page is logging into instead of secondpage it goes to the another url.ie first login session togoes to the one url and next login session it goes to another url how is it possible in php please give me answer in that question

1 Answers   iCynergy,


How to update memcached when you make changes to php?

0 Answers  


What is static method php?

0 Answers  


hi sir am kiran kumar finished my mca 2009 passed out sir .. i have more doubts regarding open source technologies sir if we pass zend exam in php can we get a job opportunity in foreign countries sir and is it good demand for php compared to dot net and java and some other technologies like sap , erp sir bcoz my friends saying they are finished dot net and java courses they telling in php we cannot earn more and we cannot go onsite opportunity even big companies not dealing with php is it right ah sir ? please send ur valuable suggestions to my email sir kiranpulsar2007@gmail.com please send ur phone number also sir thanking u sir

1 Answers  


How to genrate report in wordpress cms

0 Answers  


What is member variable?

0 Answers  


How to get best php developer Experience in Php with Sugar CRM / VTiger.

0 Answers  


Categories