I need to take string as a input covert to date and compare with current date in ksh need something as below
read expdate
today=`date +"%d-%m-%Y"`
expD =`$expdate +"%d-%m-%Y"` -- this is not working
if [today -gt expD] ; then
echo "Today is greater"
else
echo " Today is gone"