1.0.0 • Published 3 years ago

jdate-converter v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

jdate-converter

A simple library to convert Java date & time format to JavaScript date & time format (used for example in moment.js).

Based on:

Usage

Install with npm (or bower) and then:

var converter = require("jdate-converter");

var date = converter.toJsDate("dd/MM/yyyy")

// date = "DD/MM/YYYY"

Usage in AngularJS

Install with npm (or bower) and then add module jdateConverter to your app. Now you can use service named jdateConverter:

angular.module("yourModule")
    .controller("YourService", function($scope, jdateConverter) {
        $scope.myDateFormat = jdateConverter.toJsDate("dd/MM/yyyy");
        // $scope.myDateFormat should be "DD/MM/YYYY"
    };

Important: service have working format cache (you don't have to create it on your own).

Contribution

You're interested in contributing? Awesome! Fork, make change, commit and create pull request. I'll do my best to merge changes!

License

MIT

1.1.1

2 years ago

1.1.0

2 years ago

1.1.2

2 years ago

1.0.0

3 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago