Page 1 of 1

how will display the date function

Posted: Thu Jun 26, 2008 9:11 am
by nsbaskar
i used php date func ,how can i display in my localhost

Re: how will display the date function

Posted: Thu Jun 26, 2008 12:12 pm
by Christopher
Do you want to display it in the web browser or the command line?

Re: how will display the date function

Posted: Thu Jun 26, 2008 11:20 pm
by nsbaskar
thanks for ur suggestion

in the web browser

Re: how will display the date function

Posted: Thu Jun 26, 2008 11:36 pm
by Christopher

Code: Select all

<?php
echo date('Y-m-d');

Re: how will display the date function

Posted: Fri Jun 27, 2008 12:02 am
by nsbaskar
thank u very much