liten fix formatDate