How to set date field, when the date is in string format.

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.

Leave a comment

Your email address will not be published. Required fields are marked *