php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39106 date("w") incompatible with date("W")
Submitted: 2006-10-10 10:42 UTC Modified: 2006-10-10 10:53 UTC
From: felixmallek at gmx dot de Assigned:
Status: Not a bug Package: Calendar related
PHP Version: 5.1.6 OS: n/a
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
8 + 32 = ?
Subscribe to this entry?

 
 [2006-10-10 10:42 UTC] felixmallek at gmx dot de
Description:
------------
Hi,
I'm creating a calendar using the date() function.
I want to show in this calendar the Week-number, but there are two different standarts: 
1) date("w") has Sunday as the first day of the week
2) date("W") has Monday as the first day of the week

I think it's rubbish because the different standarts makes a calendar awkward.

I think it would be not bad to edit one of standarts in the next Version of PHP or in one of the following updates.

Thanks
Felix



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-10 10:53 UTC] tony2001@php.net
Expected and well documented behaviour, no bug here.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 18:01:27 2025 UTC