hot-table icon indicating copy to clipboard operation
hot-table copied to clipboard

Can't change date format

Open devmikko opened this issue 10 years ago • 1 comments

The default DD/MM/YYYY date format is still reflecting date

despite it's declare to be MM/DD/YYYY date2

devmikko avatar Mar 15 '15 23:03 devmikko

@devmikko I hope you found an answer.. I belief there is no bug, it is just how html attributes are mapped to the JavaScript properties

<hot-column width="125" type="date" value="date" date-format="MM/DD/YY" correct-format header="Date"></hot-column>

dateformat should be date-format because the JavaScript property is dateFormat which will be mapped to data-format see https://github.com/Polymer/polymer/blob/master/PRIMER.md#attribute-deserialization

correctFormat='true' should just be correct-format

sandro-k avatar May 12 '16 12:05 sandro-k