I think you can get the current date thus :

<SCRIPT LANGUAGE="JavaScript">
        <!--
                var tnd = new Date();
                document.write(tnd);
        //-->
</SCRIPT>

the getTimezoneOffset function is the one you need to use to get the
localTimezone I think.


There are also many Date methods which can be used to extract
information from the Date object: 

getDate - Returns the day of the month for the specified date. 

getDay - Returns the day of the week for the specified date. 

getHours - Returns the hour in the specified date. 

getMinutes - Returns the minutes in the specified date. 

getMonth - Returns the month in the specified date. 

getSeconds - Returns the seconds in the specified date. 

getTime - Returns the numeric value corresponding to the time for the
specified date. 

getTimezoneOffset - Returns the timezone offset in minutes for the
current locale. 

getYear - Returns the year in the specified date. 

parse - Returns the number of milliseconds in a date string since
January 1, 1970, 00:00:00, local time. 

setDate - Sets the day of the month for a specified date. 

setHours - Sets the hours for a specified date. 

setMinutes - Sets the minutes for a specified date. 

setMonth - Sets the month for a specified date. 

setSeconds - Sets the seconds for a specified date. 

setTime - Sets the value of a Date object. 

setYear - Sets the year for a specified date. 

toGMTString - Converts a date to a string, using the Internet GMT
conventions. 

toLocaleString - Converts a date to a string, using the current locale's
conventions. 

UTC - Returns the number of milliseconds in a Date object since January
1, 1970, 00:00:00, Universal Coordinated Time (GMT). 


Neil Clark
Team Macromedia
http://www.macromedia.com/go/team

Announcing Macromedia MX!! 
http://www.macromedia.com/software/trial/.


______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to