[thelist] JS: Date.UTC woes

Hassan Schroeder hassan.schroeder at gmail.com
Fri Jun 22 18:48:36 CDT 2007


On 6/22/07, Frank <lists at frankmarion.com> wrote:

> quick little function to generate the necessary string

.. but Date.UTC() doesn't *take* a string as an argument, it takes 6
integers, so you're really rowing upstream here ... :-)

How 'bout:

var now = new Date();
alert( Date.UTC( now.getFullYear(),now.getMonth(),now.getDate(),0,0,0 ));

:: for simplicity's sake...

HTH,
-- 
Hassan Schroeder ------------------------ hassan.schroeder at gmail.com



More information about the thelist mailing list