Im trying to format the date format that is sent from Flash as a variable to php.
This is the code:
var nomeMeses:Array = new Array("Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro");
var calendarioC:Date = new Date(form.chegada_mc.selectedDate);
var dataPersonalizadaC:String = calendarioC.getDate()+" de "+nomeMeses[calendarioC.getMonth()]+" de "+calendarioC.getFullYear();
LoadVars.chegada = dataPersonalizadaC;
The problem is that it format and send the “today” date when it should send the selectedDate in the DateField component.