Jump to content

Date via post


avo

Recommended Posts

Hi All

 

$_POST['date1']
$_POST['date2']
$_POST['date3']
$_POST['date4']

 

above holds a date in the format of year / month / day

 

if i echo $_POST['date1']

it would output for example 2008-19-01

 

the three posts are different dates

how would i echo the closest date to todays date

 

closest to todays date in the past

and also

closest to todays date in the future

 

 

Thanks again

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.