Make formatDate public.