rundis / elm-bootstrap.info

User documentation for Elm Bootstrap
BSD 3-Clause "New" or "Revised" License
11 stars 19 forks source link

Input.date date format #30

Open KovaxG opened 4 years ago

KovaxG commented 4 years ago

Hi, not sure if I'll get an answer, but I've been using this implementation of bootstrap and everything has been working fine, except I'm trying to change the date format of the Input.date from mm/dd/yyyy to yyyy-mm-dd and I'm not sure how to do that.

I've been trying the following:

Input.date
        [ Input.attrs [Html.Attributes.property "data-date-format" (Encode.string "yyyy-mm-dd")]
        , ...
        ]

I also tried using Html.Attributes.style and Html.Attributes.attribute, and none of them seem to work. I would appreciate any help, thanks.