How can I convert any user inputted date into
For example user can input date in one of the following formats
But I need to convert any of the date entered by user into
yyyy/mm/dd (2012/01/2012). How?
This is the script I was using , but it is not working.
echo "Please enter the date: " read X a=$X+"%y/%m/%d" echo $a