1852   Year number text is missing

Cause

This error occurs when the date parsing methods of the primitive types are processing a year number and finds the next separator character; for example, if the source parameter passed to the parseShortWithPicAndLcid method of the Date primitive type is "/12/25" and the pic parameter is "yyyy/MM/dd" (the year number is missing).

Action

Change your application logic to handle this invalid input.