Exemple #1
0
    public string checkFiscalYear(string month, string year)
    {
        string FY = "";

        try
        {
            int MM, CY, AY;

            MM = Int32.Parse(month);
            CY = Int32.Parse(year);
            if (MM < 4)
            {
                AY = CY - 1;
                FY = AY.ToString() + "/" + CY.ToString().Substring(2, 2);
            }
            else if (MM >= 4)
            {
                AY = CY + 1;
                FY = CY.ToString() + "/" + AY.ToString().Substring(2, 2);
            }
            else
            {
            }
        }
        catch
        {
        }
        return(FY);
    }