Surround retrieving date with try-catch.