There must a smoother way than writing an if statement for each weekday? This just looks so clunky :/
if(a==1)
b="Monday";
if(a==2)
b="Tuesday";
if(a==3)
b="Wednesday";
if(a==4)
b="Thursday";
if(a==5)
b="Friday";
if(a==6)
b="Saturday";
if(a==7)
b="Sunday";