最佳JavaScript日期解析器格式化? [英] Best JavaScript Date Parser & Formatter?

查看:99
本文介绍了最佳JavaScript日期解析器格式化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我开始使用jQuery以来,我一直在开发更多的JavaScript开发。

Since I've started to use jQuery, I have been doing a lot more JavaScript development.

我需要解析不同的日期格式,然后显示他们进入另一种格式。

I have the need to parse different date formats and then to display them into another format.

你知道任何好的工具吗?

Do you know of any good tool to do this?

你会推荐?

推荐答案

2014更新: Moment.js 是一个非常好的日期处理库,包括解析函数。它不包括自动日期格式检测,但您可以指定多个解析模式< a>。

2014 update: Moment.js is an excellent date manipulation library, which includes parsing functions. It doesn't include automatic date format detection, but you can specify multiple parsing patterns.

您知道手头之前的日期格式,还是用户输入的格式?

Do you know the format of the dates before hand though, or are they user input?

解析日期的已弃用库是Datejs 。自2007年以来尚未更新。

A deprecated library for parsing dates is Datejs. It hasn't been updated since 2007.

这篇关于最佳JavaScript日期解析器格式化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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