convert the values to UNIX timestamps and then do simple subtraction.
lets say $text is the date from your text file and you want to go back 1 day.
<?
$text = '2002-04-01 10:00:00';
$timestamp = strtotime ($text );
$timestamp -= 86400;
// 86400 is the # of seconds in a day
$new_date = date ('Y-m-d H:i:s', $timestamp);
echo $new_date;
?>
This would ouput "2002-03-31 10:00:00"