Replace some dateutils, remove to seconds because it's unused

This should give a much faster toDays and a more predictable minus days...

Also ditches toSeconds
Be good to add a symmetric test here that `fromDays(toDays(date)) ==== date`