how will display the date function

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
nsbaskar
Forum Newbie
Posts: 6
Joined: Thu Jun 26, 2008 7:54 am

how will display the date function

Post by nsbaskar »

i used php date func ,how can i display in my localhost
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: how will display the date function

Post by Christopher »

Do you want to display it in the web browser or the command line?
(#10850)
nsbaskar
Forum Newbie
Posts: 6
Joined: Thu Jun 26, 2008 7:54 am

Re: how will display the date function

Post by nsbaskar »

thanks for ur suggestion

in the web browser
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: how will display the date function

Post by Christopher »

Code: Select all

<?php
echo date('Y-m-d');
(#10850)
nsbaskar
Forum Newbie
Posts: 6
Joined: Thu Jun 26, 2008 7:54 am

Re: how will display the date function

Post by nsbaskar »

thank u very much
Post Reply