Skip to Content
author's profile photo Former Member
Former Member

Date Fomat

Hi everybody!

I want to setup the date format like the settings of the local machine. Unfotunately the format of the Simple Type element which is taken over from an existing Model element is different.

Think I can set the Fomat by the IWDResourceHandler interface but how can I get the format of the locale machine?

Bye Markus

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2004 at 06:51 PM

    Hi Markus,

    which local machine do you mean? As long as your Web Dynpro application will run in a single server, there might be something like a local machine (and Detlev's suggestion will work, sorry Detlev, old buddy). But if there is a cluster of servers where each single server instance might have it's own date format, the result will depend on which one you are currently "talking with".

    What kind of model is the simple type from?

    Best regards

    Stefan

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Valery,

      if it hasn't changed in the meantime, its:

      1. Locale from URL

      2. (Portal) User-specified Locale for non anonymous users

      3. Browser-settings Locale

      4. Locale from WD Application

      5. System Locale

      6. JVM Locale

      Regards

      Stefan

  • Posted on Dec 08, 2004 at 10:09 AM

    Hi Markus,

    DateFormat df = SimpleDateFormat.getDateInstance();
    

    See http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html

    Hope it helps

    Detlev

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.