format date in home#index