How to send axios post request with date object in request body?
18:38 01 Mar 2021

My api include name and date data
Type of name is string .Type of date is string
Also, In this project includes latest version of Vue.js

postTodo(){
      axios({
        method: 'post',
        url: 'my-api',
        headers : {
          token: this.token
        },
        data: {
          name : "Hello",
          // it's not working => JSON.stringify(new Date())
          date : JSON.stringify(new Date())
        }
      }).catch(err => console.log(err))
      .then( response =>
      console.log(response))
      
    }

This is a button for check post request


So, i want to convert from date object to string. How to fix this problem ?

javascript vue.js axios