两周之间的php周 [英] php weeks between 2 dates
本文介绍了两周之间的php周的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何找到没有星期和每个星期一的日期在2个日期之间。
hi how to find no of weeks and each mondays date between 2 dates. for ex 10-07-2009 to today .
注意:考虑闰年和其他日期相关约束。
Note :consider leap year and other date related constrains also.
推荐答案
echo datediff('ww', '9 July 2003', '4 March 2004', false);
找到以下网站上的功能:
http://www.addedbytes.com/code/php-datediff-function/
Find the function on the site below: http://www.addedbytes.com/code/php-datediff-function/
这篇关于两周之间的php周的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文