Fix parsing of date without year, fix #998