BUTFF program overview

Drupal 8 REST-api: Formatting your date-range values (in PATCH)

However simple it seems, It took me way too long to figure out how to properly format the json value for a daterange field in a PATCH request.
The resulting errors from doing it wrong are not very verbose.

The js Date-class has the .toISOString() method but passing that to Drupal it does not validate and gives a 500 error.