A voir également:
- Changer le format d'une date en javascript
- Changer dns - Guide
- Format epub - Guide
- Changer clavier qwerty en azerty - Guide
- Telecharger format factory - Télécharger - Conversion & Codecs
- Format apfs - Guide
1 réponse
voici une petite fonction qui je pense pourra t'aider.
function DateEurope(oDate){
if(oDate==null){return "-"}
oDate=new Date(oDate)
var oMonth
var oYear
var oDay
oDay=oDate.getDate()
oDay=oDay.toString(10)
if (oDay.length<2){oDay="0"+oDay}
oYear=oDate.getYear()
oYear=oYear.toString(10)
oMonth=oDate.getMonth()+1
oMonth=oMonth.toString(10)
if (oMonth.length<2){oMonth="0"+oMonth}
return(oDay+"/"+oMonth+"/"+oYear)
}
function DateEurope(oDate){
if(oDate==null){return "-"}
oDate=new Date(oDate)
var oMonth
var oYear
var oDay
oDay=oDate.getDate()
oDay=oDay.toString(10)
if (oDay.length<2){oDay="0"+oDay}
oYear=oDate.getYear()
oYear=oYear.toString(10)
oMonth=oDate.getMonth()+1
oMonth=oMonth.toString(10)
if (oMonth.length<2){oMonth="0"+oMonth}
return(oDay+"/"+oMonth+"/"+oYear)
}