Added new setting to allow a user to override the default long and short date formats.
Fixed default long date format.
Fixed NPE.