Determing Timezone

Discussion in 'Questions (Windows Mobile)' started by bish0p, Mar 25, 2008.

  1. bish0p

    bish0p Member Licensed 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
     
  2. specci48

    specci48 Well-Known Member Licensed User

  3. agraham

    agraham Expert Licensed User

  4. specci48

    specci48 Well-Known Member Licensed User

    Nice tip agraham! :sign0142:

    Maybe this link (or the important content) should be added to the basic4ppc help on DateFormat.


    specci48
     
  5. agraham

    agraham Expert Licensed 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.
     
  6. alfcen

    alfcen Well-Known Member Licensed User

    Hi James,

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

    TimeFormat("U")
    Msgbox(Time(Now))
     
Loading...