Hi Allen,
Thanks for your followup. As for the problem how to using the Timezone, I
think you can make full use of the javascript functions to do much more
operations onclient side so as not to put all the calculations on the
serverside. The javascript object "Date" has many useful functions, for
example:
---------------------------------------------------
Methods Explanation NN IE ECMA
Date() Returns a Date object 2.0 3.0 1.0
getDate() Returns the date of a Date object (from 1-31) 2.0 3.0 1.0
getDay() Returns the day of a Date object (from 0-6. 0=Sunday, 1=Monday,
etc.) 2.0 3.0 1.0
getMonth() Returns the month of a Date object (from 0-11. 0=January,
1=February, etc.) 2.0 3.0 1.0
getFullYear() Returns the year of a Date object (four digits) 4.0 4.0 1.0
getYear() Returns the year of a Date object (from 0-99). Use getFullYear
instead !! 2.0 3.0 1.0
getHours() Returns the hour of a Date object (from 0-23) 2.0 3.0 1.0
getMinutes() Returns the minute of a Date object (from 0-59) 2.0 3.0 1.0
getSeconds() Returns the second of a Date object (from 0-59) 2.0 3.0 1.0
getMilliseconds() Returns the millisecond of a Date object (from 0-999) 4.0
4.0 1.0
getTime() Returns the number of milliseconds since midnight 1/1-1970 2.0
3.0 1.0
getTimezoneOffset() Returns the time difference between the user's computer
and GMT 2.0 3.0 1.0
getUTCDate() Returns the date of a Date object in universal (UTC) time 4.0
4.0 1.0
getUTCDay() Returns the day of a Date object in universal time 4.0 4.0 1.0
getUTCMonth() Returns the month of a Date object in universal time 4.0 4.0
1.0
getUTCFullYear() Returns the four-digit year of a Date object in universal
time 4.0 4.0 1.0
getUTCHours() Returns the hour of a Date object in universal time 4.0 4.0
1.0
getUTCMinutes() Returns the minutes of a Date object in universal time 4.0
4.0 1.0
getUTCSeconds() Returns the seconds of a Date object in universal time 4.0
4.0 1.0
getUTCMilliseconds() Returns the milliseconds of a Date object in universal
time 4.0 4.0 1.0
parse() Returns a string date value that holds the number of milliseconds
since January 01 1970 00:00:00 2.0 3.0 1.0
setDate() Sets the date of the month in the Date object (from 1-31) 2.0 3.0
1.0
setFullYear() Sets the year in the Date object (four digits) 4.0 4.0 1.0
setHours() Sets the hour in the Date object (from 0-23) 2.0 3.0 1.0
setMilliseconds() Sets the millisecond in the Date object (from 0-999) 4.0
4.0 1.0
setMinutes() Set the minute in the Date object (from 0-59) 2.0 3.0 1.0
setMonth() Sets the month in the Date object (from 0-11. 0=January,
1=February) 2.0 3.0 1.0
setSeconds() Sets the second in the Date object (from 0-59) 2.0 3.0 1.0
setTime() Sets the milliseconds after 1/1-1970 2.0 3.0 1.0
setYear() Sets the year in the Date object (00-99) 2.0 3.0 1.0
setUTCDate() Sets the date in the Date object, in universal time (from
1-31) 4.0 4.0 1.0
setUTCDay() Sets the day in the Date object, in universal time (from 0-6.
Sunday=0, Monday=1, etc.) 4.0 4.0 1.0
setUTCMonth() Sets the month in the Date object, in universal time (from
0-11. 0=January, 1=February) 4.0 4.0 1.0
setUTCFullYear() Sets the year in the Date object, in universal time (four
digits) 4.0 4.0 1.0
setUTCHour() Sets the hour in the Date object, in universal time (from
0-23) 4.0 4.0 1.0
setUTCMinutes() Sets the minutes in the Date object, in universal time
(from 0-59) 4.0 4.0 1.0
setUTCSeconds() Sets the seconds in the Date object, in universal time
(from 0-59) 4.0 4.0 1.0
setUTCMilliseconds() Sets the milliseconds in the Date object, in universal
time (from 0-999) 4.0 4.0 1.0
toGMTString() Converts the Date object to a string, set to GMT time zone
2.0 3.0 1.0
toLocaleString() Converts the Date object to a string, set to the current
time zone 2.0 3.0 1.0
toString() Converts the Date object to a string 2.0 4.0 1.0
----------------------------------------------------------------------------
-------------------
For more detailed info on this javascript class, you may view the following
reference:
http://www.w3schools.com/js/js_datetime.asp
In addition, here is some tech articles on how to deal with the UTC
time(both clienside or serverside)
#Javascript Date and Time 5 : Date and Time Elsewhere
http://www.merlyn.demon.co.uk/js-date5.htm
#Date/Time display in local time
http://www.dotnet247.com/247reference/msgs/22/110400.aspx
Hope they are helpful.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)