string str = "2019-01"; //name: "2019-01月" str = str.Substring(str.Length - , ); //把第一个0替换为空 var t = Convert.ToInt32(str).ToString();