#!/bin/bash

read -p "What is the date of the event? " d

date -d "$d" -I > /dev/null|| exit 1
date="$(date -d "$d" +%m/%d/%Y)"
day="$(date -d "$d" +%A)"

echo "You Selected $date"
echo "and $day was the day of the week"
