writing that :
<input id=3D"vacancy_start" name=3D"vacancy_start" onchange=3D"alert( new
Date($('vacancy_start').value) );"
=2E...
I get :
Mon Aug 25 2008 00:00:00 GMT+0200 (CEST)
which is OK
I would like to get the Unix epoch time , so I wrote :
<input id=3D"vacancy_start" name=3D"vacancy_start" onchange=3D"alert( new
Date($('vacancy_start').value).dateFormat('U') );"
=2E....
but I get an error :
Error=A0: (new Date($("vacancy_start").value)).format is not a function
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
SAM
Erwin a écrit :
writing that : <input id="vacancy_start" name="vacancy_start" onchange="alert( new Date($('vacancy_start').value) );" .... I get : Mon Aug 25 2008 00:00:00 GMT+0200 (CEST) which is OK
I would like to get the Unix epoch time , so I wrote :
<input id="vacancy_start" name="vacancy_start" onchange="alert( new Date($('vacancy_start').value).dateFormat('U') );"
dateFormat is a Java function, not a JavaScript one.
<input id="vacancy_start" name="vacancy_start" onchange="alert( new Date(this.value).getTime()/1000 );">
writing that :
<input id="vacancy_start" name="vacancy_start" onchange="alert( new
Date($('vacancy_start').value) );"
....
I get :
Mon Aug 25 2008 00:00:00 GMT+0200 (CEST)
which is OK
I would like to get the Unix epoch time , so I wrote :
<input id="vacancy_start" name="vacancy_start" onchange="alert( new
Date($('vacancy_start').value).dateFormat('U') );"
dateFormat is a Java function, not a JavaScript one.
<input id="vacancy_start" name="vacancy_start"
onchange="alert( new Date(this.value).getTime()/1000 );">
writing that : <input id="vacancy_start" name="vacancy_start" onchange="alert( new Date($('vacancy_start').value) );" .... I get : Mon Aug 25 2008 00:00:00 GMT+0200 (CEST) which is OK
I would like to get the Unix epoch time , so I wrote :
<input id="vacancy_start" name="vacancy_start" onchange="alert( new Date($('vacancy_start').value).dateFormat('U') );"
dateFormat is a Java function, not a JavaScript one.
<input id="vacancy_start" name="vacancy_start" onchange="alert( new Date(this.value).getTime()/1000 );">
> writing that : > <input id="vacancy_start" name="vacancy_start" onchange="alert( n ew > Date($('vacancy_start').value) );" > .... > I get : > Mon Aug 25 2008 00:00:00 GMT+0200 (CEST) > which is OK
> I would like to get the Unix epoch time , so I wrote :
> <input id="vacancy_start" name="vacancy_start" onchange="alert( n ew > Date($('vacancy_start').value).dateFormat('U') );"
dateFormat is a Java function, not a JavaScript one.
<input id="vacancy_start" name="vacancy_start" onchange="alert( new Date(this.value).getTime()/1000 );">
merci, thanks .. je comprends mieux maintenant ...
On 25 août, 01:45, SAM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
Erwin a écrit :
> writing that :
> <input id="vacancy_start" name="vacancy_start" onchange="alert( n ew
> Date($('vacancy_start').value) );"
> ....
> I get :
> Mon Aug 25 2008 00:00:00 GMT+0200 (CEST)
> which is OK
> I would like to get the Unix epoch time , so I wrote :
> <input id="vacancy_start" name="vacancy_start" onchange="alert( n ew
> Date($('vacancy_start').value).dateFormat('U') );"
dateFormat is a Java function, not a JavaScript one.
<input id="vacancy_start" name="vacancy_start"
onchange="alert( new Date(this.value).getTime()/1000 );">
> writing that : > <input id="vacancy_start" name="vacancy_start" onchange="alert( n ew > Date($('vacancy_start').value) );" > .... > I get : > Mon Aug 25 2008 00:00:00 GMT+0200 (CEST) > which is OK
> I would like to get the Unix epoch time , so I wrote :
> <input id="vacancy_start" name="vacancy_start" onchange="alert( n ew > Date($('vacancy_start').value).dateFormat('U') );"
dateFormat is a Java function, not a JavaScript one.
<input id="vacancy_start" name="vacancy_start" onchange="alert( new Date(this.value).getTime()/1000 );">
Ou /via/ <http://translate.google.com/translate?client=tmpg&hl=en&u=http ://www.merlyn.demon.co.uk/index.htm&langpair=en|fr>.
H'mm - La, Google me dit "Le Nouveau-Brunswick SetTime, getTime ..." ; Google dit que le page Anglais dit "NB The setTime, getTime ..." et actuellement le page Anglais dit "N.B. The setTime, getTime ..." et j'ai ecrit "<p><b>N.B.</b> The <tt>setTime, getTime</tt> " !
Et N.B. en *Anglais*, c'est North Britain, point New Brunswick, qui est seulement Canadien. North Britain est une euphemisme pour l'Ecosse.
It's a good idea to read the newsgroup c.l.j and its FAQ. See below.
-- (c) John Stockton, nr London UK. ?@merlyn.demon.co.uk IE7 FF2 Op9 Sf3 news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>. <URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources. <URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
En fr.comp.lang.javascript message <48b52204$0$930$ba4acef3@news.orange.
fr>, 27 Aout 2008 11:44:35, SAM <stephanemoriaux.NoAdmin@wanadoo.fr.inva
lid> a ecrit :
tant mieux parce que, perso, les dates ça me reste bien compliqué.
Un espécialiste Me EsDates et EsCalendriers :
Ou /via/ <http://translate.google.com/translate?client=tmpg&hl=en&u=http
://www.merlyn.demon.co.uk/index.htm&langpair=en|fr>.
H'mm - La, Google me dit "Le Nouveau-Brunswick SetTime, getTime ..." ;
Google dit que le page Anglais dit "NB The setTime, getTime ..." et
actuellement le page Anglais dit "N.B. The setTime, getTime ..." et
j'ai ecrit "<p><b>N.B.</b> The <tt>setTime, getTime</tt> " !
Et N.B. en *Anglais*, c'est North Britain, point New Brunswick, qui est
seulement Canadien. North Britain est une euphemisme pour l'Ecosse.
It's a good idea to read the newsgroup c.l.j and its FAQ. See below.
--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk IE7 FF2 Op9 Sf3
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Ou /via/ <http://translate.google.com/translate?client=tmpg&hl=en&u=http ://www.merlyn.demon.co.uk/index.htm&langpair=en|fr>.
H'mm - La, Google me dit "Le Nouveau-Brunswick SetTime, getTime ..." ; Google dit que le page Anglais dit "NB The setTime, getTime ..." et actuellement le page Anglais dit "N.B. The setTime, getTime ..." et j'ai ecrit "<p><b>N.B.</b> The <tt>setTime, getTime</tt> " !
Et N.B. en *Anglais*, c'est North Britain, point New Brunswick, qui est seulement Canadien. North Britain est une euphemisme pour l'Ecosse.
It's a good idea to read the newsgroup c.l.j and its FAQ. See below.
-- (c) John Stockton, nr London UK. ?@merlyn.demon.co.uk IE7 FF2 Op9 Sf3 news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>. <URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources. <URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
SAM
Dr J R Stockton a écrit :
En fr.comp.lang.javascript message <48b52204$0$930$ fr>, 27 Aout 2008 11:44:35, SAM lid> a ecrit :
Ou /via/ <http://translate.google.com/translate?client=tmpg&hl=en&u=http ://www.merlyn.demon.co.uk/index.htm&langpair=en|fr>.
Alors là ! ce n'est vraiment pas à recommander ! Autant tenter de lire en VO même si on fait qques contre sens.
H'mm - La, Google me dit "Le Nouveau-Brunswick SetTime, getTime ..." ;
(...)
Et N.B. en *Anglais*, c'est North Britain, point New Brunswick, qui est seulement Canadien. North Britain est une euphemisme pour l'Ecosse.
L'est nul ce Google, il ne connait que le nouveau monde!
-- sm
Dr J R Stockton a écrit :
En fr.comp.lang.javascript message <48b52204$0$930$ba4acef3@news.orange.
fr>, 27 Aout 2008 11:44:35, SAM <stephanemoriaux.NoAdmin@wanadoo.fr.inva
lid> a ecrit :