Results 1 to 5 of 5

Thread: [RESOLVED] Question about Months..

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Posts
    157

    Resolved [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!

  2. #2
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Posts
    157

    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.

  4. #4
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    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(000712000)); 

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Posts
    157

    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
  •  



Click Here to Expand Forum to Full Width