parsing date string incorrectly