I have this parameter below
token[10] ="Date: UTC 2012-02-02 17:09:04"
i wrote the following code to extract only year and month,so it suppose to be "201202". is this anyway i can get only those value with out using split,i know we can use regex too but is this any other way to extract those values
string Encdate = tokens[10];
string[] EncdateValue = Encdate.ToString().Split(' ');
string Encdatesplit = EncdateValue[2].TrimStart();
string[] YYMM = Encdatesplit.ToString().Split('-');
string YYMMVal = YYMM[0] + YYMM[1];
tokenwithEncdate)