Fixed date parsing (missing breaks in switch-case).