I want split 2009-2010 in year format like: 2009
INPUT : 2009-2010 (financialYear)
OUTPUT: 2009
char[] splitter1 = { '-' };
string[] year1 = financialYear.Split(splitter1);
int str1 = Convert.ToInt32(year1[0].ToString());
str1 give result: 2009
INPUT : 2009-2010 (financialYear)
OUTPUT: 2009
char[] splitter1 = { '-' };
string[] year1 = financialYear.Split(splitter1);
int str1 = Convert.ToInt32(year1[0].ToString());
str1 give result: 2009
No comments :
Post a Comment