fixed dateString bug