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.


  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.

  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:

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice