Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General


Ask about general coding issues or problems here.

Moderators: macek, egami, gesf


Postby Curiousguy » Tue Sep 09, 2003 8:50 am

How do i define a day ?? example Monday or Tuesday ..........

HOUR is $hour = date("H");
Minute is $min = date("i");

DAy is wat??

PLs help..... Thanks ASAP. :-)
New php-forum User
New php-forum User
Posts: 3
Joined: Thu Sep 04, 2003 7:48 am

Postby liquedus » Tue Sep 09, 2003 10:55 am

php-forum Active User
php-forum Active User
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada

Postby Redcircle » Tue Sep 09, 2003 10:28 pm

do you want full day or abbrv or just the numerical day of the week. see the docs before you ask.
User avatar
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA


Postby ruturajv » Tue Sep 09, 2003 11:36 pm

try this
Code: Select all
echo (date("d M Y h:i:s a"));

Would print out the "10 Sep 2003 01:16:25 pm" depending upon your date-time
User avatar
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Return to PHP coding => General

Who is online

Users browsing this forum: Google Feedfetcher and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.