making datetime format configurable via config