Determing Timezone

bish0p

Member
Licensed User
Longtime User
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
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
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
Hi James,

You may also wish to display GMT (UT) time straight away as:

TimeFormat("U")
Msgbox(Time(Now))
 
Top