title: null value in react conditional output
body: <p>I have this code in render in a component in React</p>
  
  <pre><code>{ record.updatedAt!==null &amp;&amp; 
  otherProps.moment(record.updatedAt).format("DD-MM-YYYY")}
  </code></pre>
  
  <p>record.updatedAt sometimes have null value , so in this case moment function give 'inValid Date' like output in that is printed.
  To avoid this , i've added  record.updatedAt!==null, but i get this error:</p>
  
  <pre><code>but i keeping invalid date msg
  </code></pre>
  
  <p>any idea if my logic is right ?</p>
  
  <p>UPDATE. it's working well when is null, don't conver, the problem is with the moment; if i print the value without moment i get:</p>
  
  <pre><code>Wed Nov 01 2017 12:22:04 GMT+0100 (CET)
  </code></pre>
  
  <p>Date come from postgresql time with zone, any idea how to convert it? </p>