Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

moment-jdateformatparser

MadMG271.6k1.2.1

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

moment, java, date, format, java.text.DateFormat, time, parse

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