Adding dateAtEndOfDay method.