title: How can I set a valid empty date in Moment js?
body: <p>So, I am using an Angular material datepicker which only helps me select a month and a year.
  <a href="https://material.angular.io/components/datepicker/overview#watching-the-views-for-changes-on-selected-years-and-months" rel="noreferrer">https://material.angular.io/components/datepicker/overview#watching-the-views-for-changes-on-selected-years-and-months</a></p>
  
  <p>However, the functionality doesn't quite work as expected unless you do something like this-
  date = new FormControl(moment());
  (You are allowed to select the day as well, apart from the month and the year.)</p>
  
  <p>Now moment() as we know just returns the current date and time. My main objective is to display existing user details in a form for an application. However, the user can edit the form after it's loaded. One of those fields is a Material datepicker. Now, it's not a required field, so I don't always receive a valid response from the backend. When the response is a date, there are absolutely no issues. But whenever I receive a null value, that's where the main problem arises.</p>
  
  <p>I had a look at the Moment.js docs (<a href="https://momentjs.com/docs/" rel="noreferrer">https://momentjs.com/docs/</a>) and it clearly states that moment(null) and moment("") are both invalid dates. And hence once I use either of the two to initialize the datepicker, the datepicker doesn't allow me to select a date in the editable mode at all. </p>
  
  <p>How can I set a valid, empty date using moment() which won't interfere with the datepicker's functionality?</p>