I have a string with a date which is in this format MMDDYYYY (ie. 01132012, 01142012 etc.)
I need to do something on a page, if that string is 14 days or less from t
How about some substr + mktime?
$string = '01142012'; $time = mktime(0, 0, 0, substr($string, 0, 2), substr($string, 2, 2), substr($string, 4, 4) ); echo date('d/m/Y', $time);