Bad practice: If an error is caught, you just print the error and continue - date will be **null** on an error which will cause further uncaught errors in the code below...