Passed date from main view to modal

Added date formatting when displaying the date