Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

moment-jdateformatparser

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moment-jdateformatparser

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

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
41K
increased by0.63%
Maintainers
2
Weekly downloads
 
Created
Source

moment-jdateformatparser

NPM Build Status

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

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

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

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

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

Installation

NPM

Installation is possible with npm install moment-jdateformatparser

Bower

Installation is possible with bower install moment-jdateformatparser

License

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

Copyright (c) 2013 Heinz Romirer, Martin Groller

Keywords

FAQs

Package last updated on 26 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc