Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.11 KB

readme.md

File metadata and controls

36 lines (22 loc) · 1.11 KB

webex-date Build Status Coverage Status

🕰 Convert a JavaScript date type, RFC 2822, ISO-8601 to the WebEx XML API supported format

This is a tiny, simple module that uses moment.js to parse the input and return the format the WebEx API's support (MM/DD/YYYY HH:mm:ss).

⚠️ Note: This will use the environment's or browser's time zone to process the date

Install

$ npm install --save webex-date

Usage

const webExDate = require('webex-date');

webExDate(new Date(2000, 1, 20, 12)) //=> 02/20/2000 12:00:00  in America/Los_Angeles
webExDate('6 Mar 17 21:22 UT') //=> 03/06/2017 13:22:00  in America/Los_Angeles

API

webExDate(input)

Returns the webex date

input

Type: ISO-8601 || RFC 2822 || JavaScript Date

Date to be converted

License

MIT © Cisco Innovation Edge