NYCPHP Meetup

NYPHP.org

[nycphp-talk] Week # and Corresponding Start and End Dates

jon baer jonbaer at jonbaer.net
Fri Apr 16 14:19:55 EDT 2004


I beleive you can test the week with "W" in date, so you would do something like:

$week = date("W", $mydate);

- Jon
  ----- Original Message ----- 
  From: invisiblemute 
  To: talk at lists.nyphp.org 
  Sent: Friday, April 16, 2004 1:59 PM
  Subject: [nycphp-talk] Week # and Corresponding Start and End Dates


  I have a list of date entries in a DB and I am able to pull them out nicely by week with MySQL. I can't seem to find if there is then a good solution with MySQL, PHP or some combination of the two for me to display the results like this:
  Week 1 (Jan 1 - 7, 04)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040416/763d6b8a/attachment.html>


More information about the talk mailing list