Monthly Archive for June, 2006

Tomorrow

Here’s some code to get “tomorrow” or any day after some day.

  function tomorrow($d) {
## if $d is an empty string, uses today
## otherwise, $d should be m/d/Y
    if ($d == "") { $d = date("m/d/Y"); }
    $dsplit = split("/", $d);
    $mk = mktime(0,0,0, $dsplit[0], $dsplit[1] + 1, $dsplit[2]);
    return date("m/d/Y", $mk);
  }