Sim Greenbaum
09/11/2024, 4:12 PMlet formatDate = format.format({
value: portDateObject,
type: format.Type.DATE,
});
return formatDate;
}
erictgrubaugh
09/11/2024, 4:52 PMformat.format
will always use the preference of the current user or the system, so that function alone will never be a reliable way to get a consistent format. I generally use moment.js
for date formatting/manipulationSim Greenbaum
09/11/2024, 5:15 PM