give string date represent gregorian calendar date format YYYYMMDD return day number year Example 1input date 20190109output 9explanation give date 9th day year 2019example 2input date 20190210Output 41 Constraintsdatelength 10date4 date7 dateis digitsdate represent calendar date Jan 1st 1900 Dec 31th 2019