screnshaw
11/30/2021, 6:29 PMINVALID_TYPE_1_USE_2 - Invalid type NAN, use Date
. Here is the code below. getMomentDate(value) returns "1/13/2021". Any idea why?
var date = format.format({
value: getMomentDate(value),
type: "date"
});
scottvonduhn
11/30/2021, 6:40 PMscrenshaw
11/30/2021, 6:41 PMscottvonduhn
11/30/2021, 6:48 PMformat.parse
, or new Date()
to convert a string to a Date, or using a library like Moment.js, which can convert a moment object to a Date with momentObj.toDate()