refactoring date format article front