tags:

views:

138

answers:

3

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 zones EST,PST,etc..
  4. We need to make the time to GMT and compare with Current Time.

can anyone help on this. Thanks Ramakrishnan.p

A: 

Take a look at the maketime() function. Then compare the resulting UNIX timestamps.

Jan Kuboschek
A: 

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.

Typeoneerror