title: How to convert timestamp in react.js
body: <p>Im currently displaying a timestamp attached to each message sent in a message App Im building. However every stack overflow question I found on converting timestamps has to do with angular or native and I am trying to do this in react. Was wondering what code would I use to display something like (ex: 2/8/2018 11:04am || or something similar).</p>
  
  <p>The current .push to the message array im using is: </p>
  
  <pre><code>this.messagesRef.push(
      {
          content: this.state.userMsg,
          roomId: this.props.activeRoom.key,
          username: (this.props.user ? this.props.user.displayName : 'guest'),
          sentAt: this.props.firebase.database.ServerValue.TIMESTAMP
      }
  );
  </code></pre>
  
  <p>My git hub push for this was <a href="https://github.com/DravionV/bloc-chat-react/commit/03673a3de77f302113a3ffcb2544deb8b4c850e7" rel="noreferrer">(Git Link)</a></p>