Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to show time zones in dates (Time Stamp)

How to show time zones in dates (Time Stamp)

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
7 Posts 4 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Murray Whipps
    wrote on last edited by
    #1

    I need a way to show a date with the difference between local time and GMT (Zulu) using VB 6. The format has to be cccc-mm-dd hh.mm:ss +-hh.mmZ For example, here in AZ we are GMT - 7.00 so 9:00 am would be 2015-09-16 09.00.00 -7.00Z Does anyone know how I can do this? Thanks. Murray

    Richard Andrew x64R D 2 Replies Last reply
    0
    • M Murray Whipps

      I need a way to show a date with the difference between local time and GMT (Zulu) using VB 6. The format has to be cccc-mm-dd hh.mm:ss +-hh.mmZ For example, here in AZ we are GMT - 7.00 so 9:00 am would be 2015-09-16 09.00.00 -7.00Z Does anyone know how I can do this? Thanks. Murray

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      Better put on your asbestos suit. VB 6 is not well liked around here.

      The difficult we do right away... ...the impossible takes slightly longer.

      D M 2 Replies Last reply
      0
      • Richard Andrew x64R Richard Andrew x64

        Better put on your asbestos suit. VB 6 is not well liked around here.

        The difficult we do right away... ...the impossible takes slightly longer.

        D Offline
        D Offline
        den2k88
        wrote on last edited by
        #3

        Well, I like it and use it ;P I'll devise an answer in the meantime.

        Geek code v 3.12 GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++* Weapons extension: ma- k++ F+2 X

        1 Reply Last reply
        0
        • M Murray Whipps

          I need a way to show a date with the difference between local time and GMT (Zulu) using VB 6. The format has to be cccc-mm-dd hh.mm:ss +-hh.mmZ For example, here in AZ we are GMT - 7.00 so 9:00 am would be 2015-09-16 09.00.00 -7.00Z Does anyone know how I can do this? Thanks. Murray

          D Offline
          D Offline
          den2k88
          wrote on last edited by
          #4

          I have found a module to this address http://www.vbrad.com/article.aspx?id=62[^] which finely solves the time zones problems, I use this in production code daily (it has been used in my company for years). I hope that helps you too.

          Geek code v 3.12 GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++* Weapons extension: ma- k++ F+2 X

          T M 2 Replies Last reply
          0
          • D den2k88

            I have found a module to this address http://www.vbrad.com/article.aspx?id=62[^] which finely solves the time zones problems, I use this in production code daily (it has been used in my company for years). I hope that helps you too.

            Geek code v 3.12 GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++* Weapons extension: ma- k++ F+2 X

            T Offline
            T Offline
            Tim Carmichael
            wrote on last edited by
            #5

            And, despite the people that decry VB6, it IS still used in many organizations and STILL needs to be maintained. Can it be rewritten in a newer language? Yes. Is there a cost? Yes. Is there justification. Not always. Ask the financial industry how many applications are still written in COBOL and why...

            1 Reply Last reply
            0
            • D den2k88

              I have found a module to this address http://www.vbrad.com/article.aspx?id=62[^] which finely solves the time zones problems, I use this in production code daily (it has been used in my company for years). I hope that helps you too.

              Geek code v 3.12 GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++* Weapons extension: ma- k++ F+2 X

              M Offline
              M Offline
              Murray Whipps
              wrote on last edited by
              #6

              That solved my problem!! Many thanks. Murray

              1 Reply Last reply
              0
              • Richard Andrew x64R Richard Andrew x64

                Better put on your asbestos suit. VB 6 is not well liked around here.

                The difficult we do right away... ...the impossible takes slightly longer.

                M Offline
                M Offline
                Murray Whipps
                wrote on last edited by
                #7

                I know, I know. It's a mystery to me that people get so het up about what tool they like. As if anyone really cares. Every language I know and use has good and bad features. Our job as programmers is to choose the best fit to the current task-and if that task is maintaining VB 6 code then ... Murray

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups