Converting Dates to GMT Formats

Results 1 to 3 of 3

Thread: Converting Dates to GMT Formats

  1. #1
    Swami Guest

    Default Converting Dates to GMT Formats

    I need to convert the current date to GMT Date Format & also convert back the GMT date to a specific time zone requested by the user. Can anyone please help me to solve this problem??

  2. #2
    jason Guest

    Default RE: Converting Dates to GMT Formats

    there&#039s inbuilt support for it in JavaScript/JScript - to do it on the server you&#039d need to get the Date.TimeZOneOffset property from the browser, but it&#039s just as easily done client side<BR><BR>jason

  3. #3
    Swami Guest

    Default RE: Converting Dates to GMT Formats

    The following piece of info has been extracted from microsoft support knowledge base<BR>----------------<BR>While VBSCRIPT does provide many date and time manipulation functions, it does not provide a function to return GMT or a function to return the current time zone offset from which GMT could be derived. <BR>-----------------<BR>So, it has to be implemented only in JavaScript. <BR>Can you please give me an example of how to convert GMTTime to local time in Javascript? <BR><BR>I have used toGMTString() to convert to GMTTime. <BR><BR>But, I am not able to use this date to insert into a SQL database.<BR><BR>Can you please tell me how to convert a GMTDate to a specific Date Format which can be used in SQL Server?<BR><BR>Thanks in Advance,<BR>Swami

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts