Date formatting error assistance in bash shell script issue : <p>I'm having issue identifying what exactly my issue is with this bash shell script. I copied exactly what my teacher has but cannot get it to run properly. Thank you in advance.</p>

<p>Script: 
[Script code for the program<a href="https://i.stack.imgur.com/VYqAX.png" rel="nofollow noreferrer">1</a></p>

<p>Outcome:
<a href="https://i.stack.imgur.com/DdF9j.png" rel="nofollow noreferrer">Outcome</a></p>
