I have different formats of a date (i.e.: Birthday):
Like this:
string Birthday = "Next Birthday Jul 30 in 2014";
string Birthday = "Birt 30 6 2014";
So I will create a simple function to get the vars contains this string. I created different lines: First I count length of "Next Birthday ", to get Month, after this I added Month to length to get day... .
Maybe there is a template solution, because I have so many schemas.
Possible Result:
enter code here
string month = "Jul"; // Result after "Next Birthday "
string day = "30"; // Result after "Next Birthday " + month
string year = "2014"; // Result after "Next Birthday " + month +" " + day "in "