1.0.0 • Published 6 months ago
@procore/labs-date-formatter v1.0.0
Date Formatter
Package for handling date formatting that accounts for Procore's unique locale types, and to render dates in React.
Installation
yarn add @procore/labs-date-formatter
Usage
import { dateFormatter } from "@procore/labs-date-formatter";
const { format } = dateFormatter(locale ?? navigator.language, options);
const formattedDate = format(new Date());
locale
: can come from the window object or a Procore environment provider
options
: object for how the date is to be formatted, see Using Options
1.0.0
6 months ago
0.6.0
9 months ago
0.5.0
11 months ago
0.4.0-alpha
2 years ago
0.4.0
2 years ago
0.3.0-alpha.6
2 years ago
0.3.0-alpha.7
2 years ago
0.3.0-alpha.8
2 years ago
0.3.0
2 years ago
0.3.0-alpha.2
2 years ago
0.3.0-alpha.3
2 years ago
0.3.0-alpha.4
2 years ago
0.3.0-alpha.5
2 years ago
0.3.1-alpha.1
2 years ago
0.3.1
2 years ago
0.3.1-alpha.2
2 years ago
0.3.1-alpha.3
2 years ago
0.3.0-alpha.1
2 years ago
0.2.1
2 years ago
0.2.0
4 years ago
0.1.2
4 years ago
0.1.1
5 years ago
0.1.0
5 years ago