how to get current date react native add 0 if single day moment code example
Example 1: ecmascript 7 getmonth as 2 digits
("0" + (this.getMonth() + 1)).slice(-2)
Example 2: get month angular with 0
("0" + ((new Date()).getMonth() + 1)).slice(-2)