|
-
Apr 7th, 2006, 03:05 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Question about Months..
Hello again.. I am trying to figure out how to get the first day of the month(Monday,Tuesday,etc).. Not the current month but like next month, or the month before.. Is there a way I could get the first day of the month using they abbr. of the month? Ie: "Aug", or something? Thanks for the help!
-
Apr 7th, 2006, 04:36 PM
#2
<?="Moderator"?>
Re: Question about Months..
You can find out the what ever day, date, time etc by using mktime. From this you can use date to get the day name and month.
-
Apr 7th, 2006, 05:05 PM
#3
Thread Starter
Addicted Member
Re: Question about Months..
Erm, I am not sure I understand exactly.. I have tried it but what am I supposed to do exactly.. I have tried it several ways.. An nothing.
Last edited by Jaquio; Apr 7th, 2006 at 05:14 PM.
-
Apr 7th, 2006, 06:43 PM
#4
Re: Question about Months..
This should get you started.
PHP Code:
// Prints: July 1, 2000 is on a Saturday
echo "July 1, 2000 is on a " . date("l", mktime(0, 0, 0, 7, 1, 2000));
-
Apr 8th, 2006, 01:19 AM
#5
Thread Starter
Addicted Member
Re: Question about Months..
I got it working now, thanks to both of you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|