Created ShowDay and DateToDay functions