Results 1 to 2 of 2
  1. #1
    Abina's Avatar
    Abina is offline Master
    Join Date
    Dec 2009
    Location
    United States
    Posts
    1,073
    Thanks
    1
    Thanked 6 Times in 4 Posts
    Feedback Score
    0

    Default Convert timezone and format

    I need to write a function in coldfusion-8 which will take the "dateTime", "timezone","offset" and "dateformat" as arguments it must return the dateTime in the given timezone.

    I am not sure how to convert the time in another time zone, can someone guide me on this?

  2. #2
    numberone's Avatar
    numberone is offline Senior
    Join Date
    Jan 2010
    Posts
    623
    Thanks
    0
    Thanked 1 Time in 1 Post
    Feedback Score
    0

    Default

    Can you clarify the inputs:

    dateTime -> is that YOUR servers date and time, like from the now() function?

    timezone -> is this the timezone you are in, or the one you are translating to?

    offset -> Is this the offset of your server from gmt, or from the passed in timezone from gmt? what are the units for the offset? Hours?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Partners: BOSTON WEB DEVELOPER, LLC   |   WEBCOSMO CLASSIFIEDS