bugFix: formatDate