Date format

Discussion in 'Questions (Windows Mobile)' started by skipper, Sep 21, 2009.

  1. skipper

    skipper Member Licensed User

    Hello all,

    Is it possible ro retrieve the current date/time formats? I would like to save the current format, change the date/time format to any format I need, do whatever I have to do, then restore the date/time format to the previous format.

    thanks
    Mimmo

    PS: Just to clarify, I mean retrieving the default format. Setting a global variable with the default format I would use trough the program solve the question.
     
    Last edited: Sep 21, 2009
  2. Ariel_Z

    Ariel_Z Active Member Licensed User

  3. agraham

    agraham Expert Licensed User

    It's write only, he wants to be able read it back!
     
  4. Ariel_Z

    Ariel_Z Active Member Licensed User

    That's right, but the help file specifies the default.
     
  5. mjcoon

    mjcoon Well-Known Member Licensed User

    That's no value if you want to write a module that can be used with any code. If the module has to set the format it needs to be able to re-instate it so that there are no unintended side effects. This is all part of "encapsulation".

    I thought of exactly this problem when I just offered a bit of code to do date and time setting. http://www.basic4ppc.com/forum/additional-libraries/959-systime-library-2.html#post28278

    Mike.
     
Loading...
  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