string birthday = this.txtDate.Text;  //得到的日期(例如:1990 01 28)

我想把日期的值打印出来,但是不要为0 的数字

string str = birthday1.Replace("0", "");

结果:199128

相关文章: