Your solution is better than mine : ;D
var a = date.charAt(4);
var b = date.charAt(7);
if(a=="-" and b=="-"){
var annee = date.slice( 0, 4 );
var mois = date.slice( 5, 7 );
var jour = date.slice( 8, date.length);
date = jour+"-"+mois+"-"+annee;
}
But now I've modified all dates how can I display all the table plus records with modifications ?
For the moment I use a script like that in a "Onresult" method :
if(pData){
for (var i=0; i<pData.getLength(); i++) {
for (var z in pData.getItemAt(i)) {
//---->>>>>How recognize a date ???
//---->>>>>How apply changes occured and display dates???
txtactu.htmlText += pData.getItemAt(i)[z];
}
}
} else {
txtactu.htmlText = "Aucune Actualité";
}
In fact I have a table (actu) with 3 fields :
<numactu>
<libactu>
<dateactu>
I would like to do a sort of news rubric
Ex:
-----------------------------------------------------------------
08/07/2003
Flash-DB has overpassed the million of registered !!
-----------------------------------------------------------------
07/07/2003
Flash-DB is the best forum for flash remoting !!
-----------------------------------------------------------------
...
....
Can you help me ???
I looked the post you gave me and why including amfphp.php in server part ???
Sorry, I can do lot of mistakes I'm French ;)