Date format datepicker vue3

hi, I cannot retrieve the date in the correct format. I select a first date and then a second for the return of the vehicle. In the method I calculate the difference between the two dates for the number of days of the rental. I send all the dates to the localStorage. The problem is that the dates are in this format: Sam 12 juin 2021 00:00:00 GMT+0200 (heure d’été d’Europe centrale) – . I am using datePicker vue3

Thank you for help

<template>
        <div class="bloc-date">
                            <p class="dateAller">Date de Départ</p>
                            <div>
                                <div>
                                    <datepicker v-model="date"  lang="en"  type="date" :locale="date-fns/locale/fr" inputformat="dd-MM-YYYY" :lowerLimit="Date.now()"></datepicker>
                                </div>
                            </div>
                        </div>
                        <div class="bloc-date">
                            <div>
                                <p class="dateRetour">Date de retour</p>
                            </div>
                            <div>
                                <div class="info">
                                    <datepicker v-model="date1" lang="fr" type="date" inputformat="dd-MM-YYYY" :lowerLimit="Date.now()"></datepicker>
                                    
                                </div>
                            </div>
                        </div>
        </div> 
</template>

<script>
import Datepicker from 'vue3-datepicker'
import moment from 'moment'
export default {
    name:'RechercheDate',
    //props:['imageUrl'],
    components: { 
       Datepicker
    },
    data(){
        return{
            date:"",
            time:null,
            date1:null,
            depart:"",
            retour: "",
        }
    },
    methods:{
        
        Search(){
         
            if(this.date1 === null || this.date === null || this.depart === "" || this.retour ===  ""){
                console.log('erreur')
                return false 
            }else{
                //calcule du nombres de jours de location
                let dateLoc = new Date (this.date);
                console.log(dateLoc)
                let dateRetour = new Date (this.date1);
                let difdate = dateRetour.getTime() - dateLoc.getTime();
                let difJour = difdate / (1000 * 3600 * 24);
                const formatDate = moment(this.date).format('ddMMYYYY')
                console.log(formatDate)
                localStorage.setItem('testDate', formatDate)
                localStorage.setItem('nombredejours', difJour )
                localStorage.setItem('departLocation', this.depart)
                localStorage.setItem('retourLocation', this.retour)
                localStorage.setItem('dateDepart', this.date)
                localStorage.setItem('dateRetour', this.date1)
                
            }
            
        },
        
    }
}
</script>