【发布时间】:2011-08-15 07:27:06
【问题描述】:
可能重复:
In PHP, is there an easy way to get the first and last date of a month?
我们如何找到日期的第一天和最后一天?
我有一个日期“01/05/2011”。我正在动态获取这个日期。所以我想知道这个日期的最后一天。比如'31 or 30 or 28 or 29'。
我想用php找到它...
【问题讨论】:
-
如果日期格式给您带来任何麻烦,请参阅 stackoverflow.com/questions/5399075/… 和 stackoverflow.com/questions/3348396/…