avo Posted January 19, 2008 Share Posted January 19, 2008 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 https://forums.phpfreaks.com/topic/86836-date-via-post/ Share on other sites More sharing options...
marklarah Posted January 19, 2008 Share Posted January 19, 2008 stick it in a database and call it ordered by ASC and DESC Link to comment https://forums.phpfreaks.com/topic/86836-date-via-post/#findComment-443794 Share on other sites More sharing options...
pkSML Posted January 20, 2008 Share Posted January 20, 2008 Any more information about these dates? Are they in purely random order regarding past/future dates? Link to comment https://forums.phpfreaks.com/topic/86836-date-via-post/#findComment-443941 Share on other sites More sharing options...
Barand Posted January 20, 2008 Share Posted January 20, 2008 you already have a post asking tis question. DON'T double post. Link to comment https://forums.phpfreaks.com/topic/86836-date-via-post/#findComment-443958 Share on other sites More sharing options...
Recommended Posts