如何把string “1”,“2”改成“01”,“02”这种
string sql="select * from zy_bhjfyz"+Convert.ToString(starttime.Year)+Convert.ToString(starttime.Month);
Convert.ToString(starttime.Month);如果月份是个位数月,如何把1,2,3改成01,,02,,03这种
------解决方案--------------------string str="1";
str=str.PadLeft(2,'0');