uxdb-date

Postgres date column parser

Usage no npm install needed!

<script type="module">
  import uxdbDate from 'https://cdn.skypack.dev/uxdb-date';
</script>

README

postgres-date Build Status

Postgres date column parser

Install

$ npm install --save uxdb-date

Usage

var parse = require('uxdb-date')
parse('2011-01-23 22:15:51Z')
// => 2011-01-23T22:15:51.000Z

API

parse(isoDate) -> date

isoDate

Required
Type: string

A date string from Postgres.

License

MIT © Ben Drucker