Bind financial year in dropdown list in asp.net c#

Bind financial year in dropdown list in asp.net c#

int currentYear = DateTime.Today.Year;
        ddl_Year.Items.Clear();
        ddl_Year.Items.Add("Select");
        for (int i = 2; i >= 0; i--)
        {           
            int fy = currentYear - i ;
            int fy1 = fy + 1;
            if (DateTime.Now.Date > Convert.ToDateTime(fy + "-03-31").Date)
            {
                ddl_Year.Items.Add(fy.ToString() + "-" + fy1.ToString());
            }          
        }
                          <div class="col-lg-4">
                            <div class="form-group">
                                <label for="ddl_employee"><b>Select FY</b></label>
                                <asp:DropDownList ID="ddl_Year" runat="server" CssClass="form-control"></asp:DropDownList>
                            </div>
                        </div>

2020-02-21