i just know that there is a command which is something like this:
#IF
DAYOFWEEK SUN
#ACT
do something
if day of the week is sunday then do something
the param can be SUN,MON,TUE,WED,THU,FRI,SAT
i don't think there is a command to check which day (number) of the month it is.. not sure..