Thanks for the reply but I'm using UNIX OS. The command you gave me is giving me errors as shown below...
root@hostname>date --date '1 month ago' '+%b%d'
date: illegal option -- date
usage: date [-u] mmddHHMM[[cc]yy][.SS]
date [-u] [+format]
date -a [-]sss[.fff]