NOTE: this package is not compatible with Elm 0.19.1
Custom String to Date parser.
This library required http://package.elm-lang.org/packages/rluiten/elm-date-extra/ package.
Parses String to a Date, and since this parsing can fail, it returns a Result with some error information.
String
Date
Result
In order to to use this function, you will need to pass Date.Extra.Config from this package: http://package.elm-lang.org/packages/rluiten/elm-date-extra/latest
Date.Extra.Config
Example:
parse Date.Extra.Config.Config_en_us "%d/%m/%Y" "31/12/2017" == Date.fromString "2017-12-31"
Parses
Stringto aDate, and since this parsing can fail, it returns aResultwith some error information.In order to to use this function, you will need to pass
Date.Extra.Configfrom this package: http://package.elm-lang.org/packages/rluiten/elm-date-extra/latestExample: