I have a string of the format MASTER CARD 01/01/2012, I need to grab the date part separately.
Sometimes it could be VISA 01/01/2012, I have tried splitting by the space but got stuck when there are two spaces like in the case of MASTER CARD 01/01/2012.
Any help would be much appreciated;
string date = e.Brick.Text;
string[] dates = date.Split(' ');
The way your strings look, you will get the date in your last element in array.
A proper solution should be to check each item against DateTime, something on the following line