I am using Moment.js with the following code, and it is to generate the expiration date all month according to the selected date, however when I select today's date, it appears written Today 28/04/2018 , how to fix this error?
for ($i = 0; $i < 12; $i++){
var minhaData = moment(ParcelaVencimento, "YYYY/M/D h:m").add('months', $i);
ParcelaVencimento1 = minhaData.calendar();
var linha = '<tr class="selected" id="linha'+cont+'"> <td> <button type="button" class="btn btn-warning" onclick="apagar('+cont+');"> X </button></td> <td> <input type="hidden" name="cont[]" value="'+cont+'">'+cont+'</td> <td> <input type="text" name="ParcelaVencimento1[]" value="'+ParcelaVencimento1+'"></td> </tr>'
Date
Today at 00:00
05/28/2018
6/28/2018
7/28/2018