|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: felixmallek at gmx dot de
New email:
PHP Version: OS:


 [2006-10-10 10:42 UTC] felixmallek at gmx dot de
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.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-10 10:53 UTC]
Expected and well documented behaviour, no bug here.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 03:01:27 2024 UTC