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

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

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

结果:199128

相关文章:

  • 2021-09-03
  • 2021-08-20
  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2022-02-09
猜你喜欢
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案