woocommerce/plugins/woocommerce-admin/packages/date
Joshua T Flowers 80fe765657 Use a date instead of hour for single dates in report tables (https://github.com/woocommerce/woocommerce-admin/pull/1208)
* Use a date instead of hour for single dates in report tables

* Add hour to allowed list when day difference is less than 1

* Prioritize hour format over day and set day as default for tables

* Add default intervals for report tables

* Use explicit date format in report tables

* Add constant for default table format

* Restore allowed intervals for >1 && <7 days
2019-01-09 08:24:49 +08:00
..
src Use a date instead of hour for single dates in report tables (https://github.com/woocommerce/woocommerce-admin/pull/1208) 2019-01-09 08:24:49 +08:00
test Fix date issues introduced in woocommerce/woocommerce-admin#1203 (https://github.com/woocommerce/woocommerce-admin/pull/1229) 2019-01-07 11:41:46 +01:00
.npmrc Try: Add Lerna to split out utility packages (https://github.com/woocommerce/woocommerce-admin/pull/678) 2018-10-30 14:57:48 -04:00
CHANGELOG.md Update @woocommerce/date package changelog and version number. 2018-12-18 15:46:48 -07:00
README.md Try: Add Lerna to split out utility packages (https://github.com/woocommerce/woocommerce-admin/pull/678) 2018-10-30 14:57:48 -04:00
package.json Update wordpress monorepo 2019-01-03 10:45:22 +00:00

README.md

Date

A collection of utilities to display and work with date values.

Installation

Install the module

npm install @woocommerce/date --save

This package assumes that your code will run in an ES2015+ environment. If you're using an environment that has limited or no support for ES2015+ such as lower versions of IE then using core-js or @babel/polyfill will add support for these methods. Learn more about it in Babel docs.

Usage