找到日期文本jquery asp.net mvc [英] Find the date text jquery asp.net mvc

查看:87
本文介绍了找到日期文本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

推荐答案

正则表达式示例:更改日期格式 [< a href =https://msdn.microsoft.com/en-us/library/c8e9427h%28v=vs.110%29.aspxtarget =_ blanktitle =New Window> ^ ]是一个很好的例子,它使用正则表达式和 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.


这篇关于找到日期文本jquery asp.net mvc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆