Aspire Systems Interview Question

write a program to get the output as a day if the date is the input?