moment-jdateformatparser

Translates the `java.text.SimpleDateFormat` date format to the `moment.js` date format.

17 个版本
安装
npm install moment-jdateformatparser
yarn add moment-jdateformatparser
pnpm add moment-jdateformatparser
bun add moment-jdateformatparser
README

#moment-jdateformatparser

This moment.js plugin translates the java.text.SimpleDateFormat date format to the moment.js date format.

We took the structure graciously from https://github.com/niwibe/moment-tokens (thanks a lot!).

Usage

  • formatWithJDF: Formats the moment with a java date format.

    e.g.: moment("2013-12-24 14:30").formatWithJDF("dd.MM.yyyy") will return 24.12.2013

  • toJDFString: Translates the momentjs format to a java date format.

    e.g.: moment().toJDFString("DD.MM.YYYY") will return dd.MM.yyyy

License

moment-jdateparser is freely distributable under the terms of the MIT license.

Copyright (c) 2013 Heinz Romirer, Martin Groller

版本列表
1.2.1 2018-06-26
1.2.0 2018-06-22
1.1.0 2017-08-02
1.0.2 2016-02-11
1.0.1 2016-02-04
1.0.0 2015-07-06
0.1.9 2015-03-09
0.1.8 2015-03-06
0.1.7 2015-03-04
0.1.6 2015-02-09
0.1.5 2015-01-29
0.1.3 2015-01-15
0.1.2 2015-01-05
0.1.1 2014-09-16
0.1.0 2013-12-18
0.0.2 2013-12-17
0.0.1 2013-12-10