title: How to Get Formatted Date String In React Native
body: <p>In many apps we can see the date formatting like this.</p>
  
  <pre><code>If it's today, then print hh:mm,
  If it's yesterday, then print yesterday,
  If it's in this week, then print day of week, (ex, Wednesday)
  If it's in this year, then print MM/dd
  else print YY/MM/dd
  </code></pre>
  
  <p>Something like this.
  How can I implement in React Native or javascript?
  Is there library for this?</p>