Date Utils.
Be careful with unsafeFromString it will Debug.crash() if it cant parse date.
Utility for known input string date creation cases. Checks for a fail just in case and calls Debug.crash().
Return a list of days dayLength long for successive days starting from startDate.
Return iso week values year, week, isoDayOfWeek.
Return date of start of week one for year.
Copyright (c) 2016 Robin Luiten
Elm Date.fromString suffers from the some of the same javascript unusual compensation of input ranges when converting strings to Dates.
This method makes some known undesirable no Err results return Err.
Example produces
Ok "2012-03-02"in javascriptcheckDateResult tries to catch and mark as Err some of these cases.