This is the Function that Determined the current Date and Time
var min = new Date().getMinutes(); //To get the Current Minutes
var hours = new Date().getHours(); //To get the Current Hours
var date = new Date().getDate(); //To get the Current Date
var month = new Date().getMonth() + 1; //To get the Current Month
var year = new Date().getFullYear(); //To get the Current Year
This is where the Const with the If Statement i
const monthInLetters = (month) => {
if (month== '3'){ return ('January')}
};
And then it gets rendered in this Text box
<Text style={{color: 'white' fontSize: 40}}>{date}, {month} {monthInLetters}, {year}</Text>
I want it to check the month of the year in numbers and then convert that to the month as a string? How would I do that?