How to show time zones in dates (Time Stamp)
-
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
-
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
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.
-
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.
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
-
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
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
-
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
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...
-
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
That solved my problem!! Many thanks. Murray
-
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.
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