Header Ads Widget

Ticker

6/recent/ticker-posts

Write a shell script to validate the entered date. (eg. Date format is : dd-mm-yyyy).

echo "Enter Valid Date"
read date
echo "You have entered $date"
date -d $date
if [ $? -eq 0 ]
then
echo "Enter Date is Valid"
else
echo "Enter Date is Invalid"

fi 

Post a Comment

0 Comments