var newDate = “27/06/2020”
var parsedDateStringAsRawDateObject = format.parse({ value: newDate, type: format.Type.DATE
});
When we get date as string, it is not possible to set it on the date field, in such cases we can parse it and then can be applied.