Revision: 48971
Updated Code
at November 21, 2011 21:48 by jbernus
Updated Code
var d_names = new Array("dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"); var m_names = new Array("janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"); // date au format : 2010-09-12 18:52:10 var d1 = (date).split(' '), d1 = d1[0].split('-'), dateString = d1[1]+'/'+d1[2]+'/'+d1[0], d = new Date(dateString), jour = d.getDay(), jourm = d.getDate(), mois = d.getMonth(), annee = d.getFullYear(), postdate = d_names[jour] + ' ' + jourm + ' ' + m_names[mois] + ' ' + annee;
Revision: 48970
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 13, 2011 17:34 by jbernus
Initial Code
var d_names = new Array("dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"); var m_names = new Array("janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"); // date au format : 2010-09-12 18:52:10 var d1 = (date).split(' '), d1 = d1[0].split('-'), dateString = d1[1]+'/'+d1[2]+'/'+d1[0], d = new Date(dateString), jour = d.getDay(), jourm = d.getDate(), mois = d.getMonth(), annee = d.getFullYear(), postdate = d_names[jour] + ' ' + jourm + ' ' + m_names[mois] + ' ' + annee;
Initial URL
Initial Description
Translate dates in french in JavaScript
Initial Title
Date translation in french in JavaScript
Initial Tags
date
Initial Language
JavaScript