How does the element UI date-time selector assign the date format I got from the backend to the selector as the default time for just entering the page?

Mar.11,2021

<template>
 <div class="block">
    <span class="demonstration"></span>
    {{value6}}
    <el-date-picker
      v-model="value6"
      type="daterange"
      range-separator=""
      start-placeholder=""
      end-placeholder="">
    </el-date-picker>
  </div>
</template>

<script>
  create() {
      $.get(url, (data) => {
          //data;value6;
          data = data;
          value6 = data;
      })
  } 
  data() {
      return {
        value6: [ "2018-05-04T16:00:00.000Z", "2018-05-09T16:00:00.000Z" ],
      };
    }
</script>    

as for the date format
new Date (). ToISOString () is the above format
new Date ('2018-05-04'). ToISOString () to write

Menu