TOLOCALESTRING FORMAT DD-MM-YYYY
const formatYmd = date => date.toISOString().slice(0, 10);
formatYmd(new Date());
VeNOM
const formatYmd = date => date.toISOString().slice(0, 10);
formatYmd(new Date());
function getDate(dateTimeString)
{
var date = getDateTime(dateTimeString);
var options = { year: "numeric", month: "numeric", day: "numeric" };
return date.toLocaleDateString( date.getTimezoneOffset(), options );
}