Home > Net >  The split function how to use c #
The split function how to use c #

Time:12-03

I have a time string, how to remove the "2020-12-26" and "2021-01-01"

"The 2020-12-26-2020-12-26"

CodePudding user response:

The Split (new String [] {} "-", StringSplitOptions. None).

CodePudding user response:

CodePudding user response:

DateStr [0]
"2020"
DateStr [1]
"12"
  •  Tags:  
  • C#
  • Related