No, i don't think you can do it in templates. The monthitemtemplate is the same template as the ones used in original controls (like datagrid).
You can insert controls in the template which then can have a logic necessary.
For example you can have:
<mycontrol:SomeLogicControl runat=server Status=<%#DataBinder.Eval(Container.DataItem,"StatusID")%>/>
and then this new SomeLogicControl can have the if statement.