iQuery插件datepicker获取的时间函数为"月月/天天/年年年年"(以04/21/2015为例)的形式
(1)转化为2015-21-04形式:$start = date('Y-m-d',strtotime($start1));
(2)计算两个时间所差天数:$days=floor((strtotime($end)-strtotime($start))/86400);
(3)求所求日期的下一天:$nextday=date("Y-m-d",strtotime("$tday +1 day"));
(4)求所求日期的一周后:$nextweekday=date("Y-m-d",strtotime("$tday+1 week"));
(5)求下个星期二:date("Y-m-d",strtotime("next Thursday"));
(6)上个周一: date("Y-m-d",strtotime("last Monday"));
(7)一个月前: date("Y-m-d",strtotime("last month"));
(8)一个月后: date("Y-m-d",strtotime("+1 month"));

最新文章

  1. SweetAlert – 替代 Alert 的漂亮的提示效果
  2. CentOS 7下的 Mysql 主从配置
  3. Spark源码学习1.1——DAGScheduler.scala
  4. 论文阅读之 A Convex Optimization Framework for Active Learning
  5. ckeditor
  6. spring注解:@PostConstruct和@PreDestroy
  7. 怎样成为PHP 方向的一个合格的架构师
  8. bootstrap注意事项(一)
  9. cookie程序设计举例
  10. 【转】Android内存机制分析1——了解Android堆和栈
  11. This application failed to start because it could not find or load the Qt platform plugin "windows" 的问题原因以及解决方案
  12. Spring boot中自动编译配置
  13. Linux 下磁盘挂载
  14. Mybatis的延迟加载和缓存
  15. Dubbo服务超时
  16. Python爬虫项目--爬取某宝男装信息
  17. maven打包到私服,打的是war包,好郁闷
  18. SQL SERVER解析Json
  19. poj1273
  20. Linux buffer/cache异同

热门文章

  1. javascript——马步之Array篇
  2. Composer PHP 依赖管理工具
  3. [转]How to convert IP address to country name
  4. 关于Eclipse生成和导入Patch文件.
  5. 关于使用vss版本管理工具中的sln,suo文件作用
  6. 【置换,推理】UVa 1315 - Creaz tea party
  7. linq检索带命名空间的xml
  8. Java Concurrency - Lock
  9. HTML5新特性之WebNotifications
  10. C#的提交表单方式WebClient