工作日期 [英] working with dates
本文介绍了工作日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个日期被称为php中的函数。我需要对这个日期的月份进行估计,以便仅在该月份进行一些计算。
我真的不知道该怎么做。我尝试了几件事,但没有任何作用。
有人可以给出线索吗?
欣赏任何一点帮助
Francesco
解决方案
简单
code> $ month = date('n',strtotime($ input));
I was wondering if anyone would help with the following:
I have a date called into a function in php. I need to estrapolate the month form this date in order to make some calculation base on the month only.
I really have no idea how do go about it. I have tried few things but none works.
It there anyone who can give a clue?
Appreciated any little help. Francesco
解决方案
Simple
$month= date('n',strtotime($input));
这篇关于工作日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文