【发布时间】:2014-05-12 02:52:56
【问题描述】:
是否有可能在未来 12 个月内获得当前日期?
看看这些场景:
Today is 2014-05-09
next month will be 2014-06-09
and so on and so fourth
what if today is 2014-01-31
next month is 2014-02-28
Other examples
what if today is 2014-05-31
next month will be 2014-06-30
谢谢
【问题讨论】:
-
可以做任何事情。你愿意把问题说得更具体一点吗?
-
“下个月的一天”的模式并不完全清楚。你的意思是“一个月后”? “三十天后?”还有什么?
-
我将更新我的问题。
-
如果您在 30 天后需要,那么您应该访问此链接,您可以在这里找到一些提示stackoverflow.com/questions/14584115/…
-
@phphopzter 检查我的答案