JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 67020
  • Score
    100M100P100Q167589F

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

Package Exports

  • moment-jdateformatparser

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (moment-jdateformatparser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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

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

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

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

    e.g.: moment().toJavaDateFormatString("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