Friday, 15 March 2013

How to find week number of a day in a month using php -



How to find week number of a day in a month using php -

hai found php number of week month quiet helpful makes error on months start on sundays illustration "2013-09-01" gives week number 2 (actually '1').. 1 got idea?? please share in advance.....

add strtotime function it.. works fine.. date("w",strtotime("2013-09-01"));

php

No comments:

Post a Comment