Refactoring dateFormat method.
Not use isBlank method to check optional param.
Refactoring isBlank method.