i tried to replace inner text of the month tag i.e month names should be replaced with their specified month number. i tried this,
Dim strFile As String = File.
Try this
Dim y = "31Jan2011" Dim Match = Regex.Match(y, "([^>]*)<\/month>").Groups(1).ToString Regex.Replace(y, Match, DateTime.ParseExact(Match, "MMM", CultureInfo.CurrentCulture).Month.ToString)
It will give you OP Like
31012011