获取上个月的日期范围
我需要帮助以以下格式获取前几个月的完整日期范围:Ymd
我已成功获取“本”月的完整日期范围,但无法获取“前”月的完整日期范围。
非常感谢任何帮助!
I need help getting the previous months full date range in the following format: Y-m-d
I have successfully been able to get "this" months full date range but not the "previous" months full date range.
Any help is greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这可以正确完成工作:
这是证明:http://ideone.com/L82ZW
This gets the job done correctly:
Here is the proof: http://ideone.com/L82ZW
此代码将打印您想要的内容..
第一次日期:
最后一次日期:
This code will print what you want..
First Date:
Last date:
你可以这样做:
You could do something like this: