Apple Script Time interval
It's because you are supplying dates in the format dd-mm-yyyy, where you need to be supplying them in the format yyyy-mm-dd.  So your creationDate was already in the correct format before your script adjusted it.

There's no need to replace slashes with hyphens—the handler is, for the most part, indifferent to the delimiter being used (notable exceptions include "." and "+").