Ask about general coding issues or problems here.
Moderators: macek, egami, gesf
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
- Posts: 3
- Joined: Thu Sep 04, 2003 7:48 am
- php-forum Active User
- Posts: 266
- Joined: Tue Apr 08, 2003 5:18 am
- Location: Ottawa, Canada
do you want full day or abbrv or just the numerical day of the week. see the docs before you ask.
- Posts: 830
- Joined: Tue Jan 21, 2003 10:42 pm
- Location: Michigan USA
- 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
- 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: Majestic-12 [Bot] and 1 guest