1.0.3 • Published 4 years ago

date-prop-types v1.0.3

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

date-prop-types Build Status

A validator that you can use to verify that the formatted date that your React component receives has the specified format.

Installation

npm install date-prop-types --save-dev

Usage

import date from 'date-prop-types';

MyComponent.propTypes = {
  hiringDate: date('YYYY-DD-MM').isRequired,
  dateOfDismissal: date('YYYY-DD-MM')
};

License

This project is licensed under the MIT License

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

1.0.0-beta.0

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago