Shridhar Salunkhe

Shridhar Salunkhe

  • NA
  • 294
  • 1.2k

How to select specific part from string?

May 22 2017 8:03 AM
"Wed May 03 2017 05:04:00 GMT+0530 (India Standard Time)" from this string only want
"May 03 2017 05:04:00" this part.
 
how to get only selected part from string?
 
I tried:-
int[] arrDate = GetDateTime.Split(',').Select(int.Parse).ToArray();
 
but it shows Error:- Input string was not in a correct format. 
 

Answers (2)