Skip to content

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

License

Notifications You must be signed in to change notification settings

cisco-ie/webex-date

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published