Adding possibility to pass date format to date formatter