找到日期文本jquery asp.net mvc

问题描述:

我需要在日期格式dd-MM-yyyy中查找文本并替换为此格式mm / dd / yyyy。请帮助

I need to find the text in date format "dd-MM-yyyy" in view and replace with this format " mm/dd/yyyy" .Please help

正则表达式示例:更改日期格式 [ ^ ]是一个很好的例子,它使用正则表达式和 Regex.Replace 方法将日期从一种格式替换为另一种格式。
Regular Expression Example: Changing Date Formats[^] is a good example that uses regular expressions and the Regex.Replace method to replace dates from one format into another.