diff --git a/MIGRATION.md b/MIGRATION.md new file mode 100644 index 000000000..0098e0984 --- /dev/null +++ b/MIGRATION.md @@ -0,0 +1,37 @@ +

Migration Guide

+ +- [From version 1.x to 2.0.x](#from-version-1x-to-20x) + - [Date Input](#date-input) + +# From version 1.x to 2.0.x + +## Date Input + +We updated the React DatePicker from 1.X to 3.X. The library no longer uses moment. The library uses DateFns as dependency for the date management. Therefore, The Date Input no longer uses moment object for the value, but a Javascript Date object. Also, the onChange Callbackk return a Date value instead of a moment Value. + +We also added a *format* param wich permit to specify the way to diplay value in viewvalue and in the field. He have to be a [unicode format](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table) + +In 1.X : + +```javascript + +``` + +In 2.0.x + +```javascript + +``` + + + +