using System.Text.RegularExpressions;
public static void Main()
String example = "call Madhu on 25/02/2112";
Regex rx = new Regex(@"(?<day>\d{2})\/(?<month>\d{2})\/(?<year>\d{4})(?:[\D]*)");
Regex rx1 = new Regex(@"(?<day>\d{2})\/(?<month>\d{2})\/(?<year>\d{2})(?:[\D]*)");
Match m = rx.Match(example);
Match m1 = rx1.Match(example);
DateTime date = DateTime.Parse(String.Format("{0}/{1}/{2}",
m.Groups["year"].Value));
DateTime date = DateTime.Parse(String.Format("{0}/{1}/{2}",
m1.Groups["month"].Value,
m1.Groups["year"].Value));
Console.WriteLine("No Date Found");