Convert day to datatable in c#

Convert day to datatable in c#

public static DataTable Getday()
        {
            DataTable _dtyear = new DataTable();
            _dtyear.Columns.Add("val");
            _dtyear.Columns.Add("txt");

            int DayInMonth = DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month);
            DataRow row;
            for (int Yr = 1; Yr <= DayInMonth; Yr++)
            {
                row = _dtyear.NewRow();
                row["val"] = Yr;
                row["txt"] = Yr;
                _dtyear.Rows.Add(row);
            }

            row = _dtyear.NewRow();
            row["val"] = "-1";
            row["txt"] = "Select";
            _dtyear.Rows.Add(row);

            return _dtyear;
        }

2020-02-05