Parsing a hard DateTime

Hi,

Can you try the following expression?

DateTime.ParseExact(System.Text.RegularExpressions.Regex.Replace("Sep 4th 2007","(?<=\d+)[A-Za-z]+",""), "MMM d yyyy", System.Globalization.CultureInfo.InvariantCulture)

Regards,

1 Like