I am creating script to check RTC working & for that first I am getting the date & time from user input in yyyy mm dd hh:mm:ss format.read -p Enter the date: valecho $valdate -s ${val}Now I am getting the error:date: invalid date 2016 01 22 14:00Please help in this. Thanks in advance.
set date time from user input in shell
bash;shell;shell script