还可以这样:
If e.DataTable.DataRows.Count > 0 Then
e.DataRow("年度") = date.today.Year
e.DataRow("月份") = date.today.Month
End Ifdate.today是公共变量,可以直接引用!