This code below is check leap year and invalid day completed.
But I have some problem.I try to make an trap.People insert blank space when enter day, and program not accept and sad input invalid day again ( not blank space). I try any time it not worked :|. I new to shell scripting. Please help
while [ $result = "FALSE" ]
echo -n "Enter day(mm/dd/yyyy): "
if date --date="$datetime" >/dev/null