superset-frontend/src/views/segmentation/utilities/processSegmentStats.js
// Formats date object into yyyy-mm-dd format
Formats date object into yyyy-mm-dd format
Formats date object into yyyy - mm - dd format
function formatDate(date) {
  let month = "" + (date.getMonth() + 1);
  let day = "" + date.getDate();
  let year = date.getFullYear();
  if (month.length < 2) month = "0" + month;
  if (day.length < 2) day = "0" + day;
  return [year, month, day].join("-");
}
function formatDate ( date ) { let month = "" + ( date . getMonth ( ) + 1 ) ; let day = "" + date . getDate ( ) ; let year = date . getFullYear ( ) ; if ( month . length < 2 ) month = "0" + month ; if ( day . length < 2 ) day = "0" + day ; return [ year , month , day ] . join ( "-" ) ; }
Formats date object into yyyy-mm-dd format
Formats date object into yyyy - mm - dd format