For job period to be fetched completely second half of the job period should either have space/- to separate it from the employer details. In case of "January 2020 to December 2020from Infotech Delhi as Java Developer" there is no break between December 2020 and from, hence the job period is half fetched i.e., January 2020.
Similarly if Job Period is given " Infotech Delhi fromJanuary 2020 to December 2020 as Java Developer" in this case also job period will be fetched half. So there should be space/- both before and after Job Period.
If you have any questions, you can contact us at firstname.lastname@example.org