problem in making file name from date command

Dear all

I am bit new to programming. I have to redirect the output to a file which will be in the following format

man ls> date +"hup-%m%d%y-%H%M" --------> this will show me the month,day,year,hours and minute in a file name whose name start from "hup-"

kindly any correct my syntax

replace echo "test" with your program

echo "test" > hup-`date +%m%d%y-%H%M`

thanks a ton