替换字符串中的字符

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

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

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

结果:199128

posted @ 2012-08-30 16:09  小小A梦  阅读(291)  评论(0编辑  收藏  举报