title: shell script to get year, date and month from YYYY-MM-DD format
body: <p>I am running a shell script which accepts date in "YYYY-MM-DD" format. from this date input, how can i get year, month and day separately? </p>
  
  <p>Thanks for replies in advance.</p>