Day??

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Curiousguy
New php-forum User
New php-forum User
Posts: 3
Joined: Thu Sep 04, 2003 7:48 am

Day??

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. :-)

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

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


User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

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
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

date

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


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 2 guests