Made parsedate function public