static creationDate() {
    let date = new Date();
    let month = date.getMonth();
    if (month.toString().length === 1) {
      month = "0" + (month + 1).toString();
    }
    return `${date.getFullYear()}-${month}-${date.getDate()}`;
  }
/**
   * Set a creation date when the object is instantiated
   */
Set a creation date when the object is instantiated
Set a creation date when the object is instantiated
static creationDate() {
    let date = new Date();
    let month = date.getMonth();
    if (month.toString().length === 1) {
      month = "0" + (month + 1).toString();
    }
    return `${date.getFullYear()}-${month}-${date.getDate()}`;
  }
static creationDate ( ) { let date = new Date ( ) ; let month = date . getMonth ( ) ; if ( month . toString ( ) . length === 1 ) { month = "0" + ( month + 1 ) . toString ( ) ; } return ` ${ date . getFullYear ( ) } ${ month } ${ date . getDate ( ) } ` ; }
Set a creation date when the object is instantiated
Set a creation date when the object is instantiated