Well, you do not specify the "current date" anywhere - you did not assign a value to your dt variable, which the compiler complains about. You can use:
DateTime dt = DateTime.Today;
Note that this will use the local time zone of the system - and the date depends on the time zone. For example, if you need the date of the current moment in UTC, you need:
DateTime dt = DateTime.UtcNow.Date;
Think very carefully about what you mean by today.
In addition, a slightly simpler alternative version of your calculation:
int quarter = (month + 2) / 3;
source share