wcf-date
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

wcf-date

Build Status bitHound Overall Score bitHound Dependencies bitHound Dev Dependencies bitHound Code

Converts between WCF date and JavaScript Date object.

Install

npm install wcf-date

Use Module

Node.js

let wcfDate = require("wcf-date");

Browser

<script src="node_modules/wcf-date/lib/wcf-date.js" />

Demo

let wcfDate = require("wcf-date");
let s = "/Date(1408431600000-0700)/";
let d = wcfDate.parseWcfDate(s);
// 2014-08-19T06:59:59.300Z
let s2 = wcfDate.toWcfDateString(d);
// "/Date(1408431599300)/"

Package Sidebar

Install

npm i wcf-date

Weekly Downloads

8

Version

1.0.9

License

Unlicense

Last publish

Collaborators

  • jeff-jacobson