title: How to get the current date in React Native
body: <p>I'm trying to get the current day/month/year in a React Native App. I am new at this, so I have many doubts about the implementation.</p>
  
  <p>I tried to follow the following solution, but does not work for me:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>currentDay: new Date(),
  
  console.log('Date:'+this.state.currentDay ,);
  console.log('Day: '+this.state.currentDay.getDay() , 'Month: ' + this.state.currentDay.getMonth(), 'Year :'+ this.state.currentDay.getYear());</code></pre>
  </div>
  </div>
  </p>