pages/account/index.js
/**
   * Check if date is valid and format
   */
Check if date is valid and format
Check if date is valid and format
formatDate(dateTime, prepend) {
    const date = moment.unix(dateTime);
    if (date.isValid()) {
      return date.format('DD/MM/YYYY');
    }
    return null;
  }
formatDate ( dateTime , prepend ) { const date = moment . unix ( dateTime ) ; if ( date . isValid ( ) ) { return date . format ( 'DD/MM/YYYY' ) ; } return null ; }
Check if date is valid and format
Check if date is valid and format