B bish0p Member Licensed User Longtime User Mar 25, 2008 #1 Can someone please point me in the direction on how I can determine the Current timezone on the device. I have tried code from some of the examples in the examples forum but always end up with an error. Thanks James
Can someone please point me in the direction on how I can determine the Current timezone on the device. I have tried code from some of the examples in the examples forum but always end up with an error. Thanks James
specci48 Well-Known Member Licensed User Longtime User Mar 25, 2008 #2 Hello bishOp, if you try the contents of this thread: http://www.b4x.com/forum/showthread.php?t=938 What error do you get? specci48
Hello bishOp, if you try the contents of this thread: http://www.b4x.com/forum/showthread.php?t=938 What error do you get? specci48
agraham Expert Licensed User Longtime User Mar 25, 2008 #3 Try Code: DateFormat = "zz" Msgbox(Date(Now)) See this http://msdn2.microsoft.com/en-us/library/8kb3ddd4.aspx and http://msdn2.microsoft.com/en-us/library/az4se3k1.aspx Not all may work but most do.
Try Code: DateFormat = "zz" Msgbox(Date(Now)) See this http://msdn2.microsoft.com/en-us/library/8kb3ddd4.aspx and http://msdn2.microsoft.com/en-us/library/az4se3k1.aspx Not all may work but most do.
specci48 Well-Known Member Licensed User Longtime User Mar 25, 2008 #4 Nice tip agraham! :sign0142: Maybe this link (or the important content) should be added to the basic4ppc help on DateFormat. specci48
Nice tip agraham! :sign0142: Maybe this link (or the important content) should be added to the basic4ppc help on DateFormat. specci48
agraham Expert Licensed User Longtime User Mar 25, 2008 #5 In the help for both my ControlsExDevice and ControlsExDesktop libraries there is a list of these custom formats. All should work for both DateFormat and TimeFormat, fewer work for the DateTimePicker control in those libraries. Note that there is really no difference between the DateFormat and TimeFormat statements except that they each have their own different format string. Both can do both date and time formatting in those custom formats and are effectively the same function.
In the help for both my ControlsExDevice and ControlsExDesktop libraries there is a list of these custom formats. All should work for both DateFormat and TimeFormat, fewer work for the DateTimePicker control in those libraries. Note that there is really no difference between the DateFormat and TimeFormat statements except that they each have their own different format string. Both can do both date and time formatting in those custom formats and are effectively the same function.
alfcen Well-Known Member Licensed User Longtime User Mar 25, 2008 #6 Hi James, You may also wish to display GMT (UT) time straight away as: TimeFormat("U") Msgbox(Time(Now))
Hi James, You may also wish to display GMT (UT) time straight away as: TimeFormat("U") Msgbox(Time(Now))