Add a service to deal with dates format in controllers