If you know the answer why you post a question?
Anyway, I think this method would be nice implemented as an extension method like this
static class ExtensionMethods
{
public static int GetQuarter(this DateTime dt)
{
return (dt.Month - 1) / 3 + 1;
}
}
and called like:
int iQuarter = DateTime.Now.GetQuarter();