SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Dates in php

  1. #1
    SitePoint Wizard Sillysoft's Avatar
    Join Date
    May 2002
    Location
    United States :)
    Posts
    1,691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool Dates in php

    How would you find out the date for Monday then Friday from any day of the week? Like today, if I wanted a person to come to my page and it shows Monday then the date for Monday and then Friday and the date for Friday, how would I do that?

    Example:

    Hello,
    Today is: Wednesday March 21, 2003

    The beginning of the week was: Monday March 19,2003

    The end of the week is: Friday March 23, 2003

    Thanks
    Silly

  2. #2
    pg for mild peril cow's Avatar
    Join Date
    Mar 2000
    Location
    nevada, usa
    Posts
    636
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    check out the manual page: http://www.php.net/date
    "There's no justice like angry mob justice!" --Seymour Skinner


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •