title: I want to display the day of the date that I put in my array using moment
body: <p>I'm displaying the list of holidays where in the array the specific day (e.g 'MMMM-01-YYYY' in my array it's written like this dateHoliday: "01") I want to catch the day included in my array and display it (e.g "Mon" like this.)  </p>
  
  <p>I tried using moment and what I achieved is to display the current day(today). I can't get the array the I want.</p>
  
  <pre><code>&lt;template&gt;
  &lt;h2&gt;{{ Holiday.dateHoliday }}&lt;/h2&gt;
  &lt;/template&gt;
  
  import moment from "moment";
  export default {
  data() {
  return {
    Holidays: [
      {
        id: 1,
        Month: "January",
        day: "Tue",
        dateHoliday: "01",
        Title: "new year's day",
        Description: "Description: Regular holiday."
      }
  
  methods: {
      displayDay(){
      let dH = moment().format("ddd");
      this.dateHoliday = dH;
  console.log(this.dateholiday);
      }
  </code></pre>
  
  <blockquote>
    <p>edit</p>
  </blockquote>
  
  <p>I tried Capt. Teemo's answer.
  I changed one of my string in the array. </p>
  
  <pre><code>  day: "Tue",    
    dateHoliday: "01",
  </code></pre>
  
  <blockquote>
    <p>to</p>
  </blockquote>
  
  <pre><code>  day: "01-01-2019",
    dateHoliday: "01",
  </code></pre>
  
  <blockquote>
    <p>then in my template:</p>
  </blockquote>
  
  <pre><code>&lt;h2&gt;{{ Holiday.dateHoliday }}&lt;/h2&gt;
  &lt;h2&gt;{{ Holiday.day | convertDay }}&lt;/h2&gt;
  </code></pre>
  
  <blockquote>
    <p>But in the property(day) i don't want it to be specific (e.g 01-01-2019. I want it like 01-01-xxxx where its filtered? to the year i want). </p>
  </blockquote>