small date utils refacto