How to Compare Dates in php?

前端 未结 3 946
野的像风
野的像风 2020-12-07 06:40

i need code to compare date in php

  1. Input date should be a valid date
  2. input date should not be less than the current date.
  3. i need to give time
3条回答
  •  隐瞒了意图╮
    2020-12-07 07:15

    Check out Zend Framework's Date: http://framework.zend.com/manual/en/zend.date.overview.html You just need the Date.php file and the Date/Locale folders from the framework to use it.

提交回复
热议问题