tag:blogger.com,1999:blog-6780330443694982799.post1604941569181477491..comments2017-01-28T02:57:05.291-08:00Comments on Daily Coding Blog: Calculating Week of the Month from a given date [ PHP ]Unknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6780330443694982799.post-69426699441959668292010-11-29T00:52:45.674-08:002010-11-29T00:52:45.674-08:00Dude I am using Chrome 7.0 on Mac OSX 10.6 and you...Dude I am using Chrome 7.0 on Mac OSX 10.6 and your code sample is all messed up. It doesn't work.Bing Wuhttps://www.blogger.com/profile/02735786918215481690noreply@blogger.comtag:blogger.com,1999:blog-6780330443694982799.post-22770605062522049622009-04-05T22:24:00.000-07:002009-04-05T22:24:00.000-07:00@UKuser I don't understand how ceil(d/7) return yo...@UKuser I don't understand how ceil(d/7) return you an adequate result...<BR/>take the example of 7th April 2009, It is actually a day of the 2nd week of the month, but just doing a ceil(d/7) will return you 1....<BR/>So if you are using this logic to read data from logs that are arranged in an week of the month basis, then you may look into a wrong log file and will never been able to find the Sourav Rayhttps://www.blogger.com/profile/09896765324606004321noreply@blogger.comtag:blogger.com,1999:blog-6780330443694982799.post-41121015296035265492009-04-05T07:29:00.000-07:002009-04-05T07:29:00.000-07:00Surely just ceil(d/7) will return the relevant wee...Surely just ceil(d/7) will return the relevant week number of the month? It won't return the W number of PHP date() but is perfectly adequate.UKuserhttps://www.blogger.com/profile/06998818693739377677noreply@blogger.com