I got this script from some site and am using it. Hope this helps.
----------------------------
TODAY=`date "+%y %m %d" | nawk '{split("31,31,28,31,30,31,30,31,31,30,31,30",month,",");
if ($1 % 4 == 0)
{
month[3]=29;
};
day=$3-1;
mon=$2+0;
year=$1+0;
if (day == 0)...