[solved] German date format, but english locale?

Salut,
I prefer the system displaying English texts, though I need German date and number formats. How can I change the date formats?
Thanks in advance,
Stefan
Last edited by vbtricks (2008-05-11 09:50:41)

I've solved it by doing such:
$ cat /etc/profile.d/_locales.sh
# Locale
export LANG="en_US.utf8"
export LC_NUMERIC="sv_SE.utf8"
export LC_COLLATE="C"
export LC_TIME="sv_SE.utf8"
export LC_MONETARY="sv_SE.utf8"
export LC_MEASUREMENT="sv_SE.utf8"
export LC_CTYPE="sv_SE.utf8"
export LC_MESSAGES="en_US.utf8"
And then in my .bashrc I have the following:
if [ -f /etc/profile ]; then
. /etc/profile
fi
/etc/profile will go through all files in /etc/profile.d/ and source them if they are executable (so chmod a+x it).

Similar Messages

  • Meeting Room emails are in German date format not English

    Hi,
    We've consolidated some Exchange servers and this has included creating some Meeting room resource mailboxes on our German Exchange 2010 server (Sp1 + update rollup 3v3).
    When a user gets a reply from the meeting room (E.g. if the meeting room is already booked and it conflicts with someone else) then the message is sent showing the time and date as:
    Organizer and Time of Conflicting Meeting 
    Username - Montag, Juli 11, 2011 1:00:00 to Montag, Juli 11, 2011 1:30:00
    It shows Juli instead of July and Montag instead of Monday. Does anyone know if this setting change be changed? If so is it a property of the mailbox or is it a property of the resource attendant so if I change it for one mailbox it will affect every other
    meeting room?
    Thanks,
    Joe

    Hi Joe,
    Thanks for your update.
    Reboot the server sounds low technical but it actually resolved many technical issues. So go ahead and have a try.
    Based on my research, whenever Exchange returns the decline DSN message, it generates the date time in the format of the original message (meeting
    request). To be more specific, it is the property "PR_Message_Locale_ID". It is also worth to verify this attribute.
    So, please verify the following attributes:
    1.   
    The "PR_Message_Locale_ID" of the original meeting request (which was declined) from Sent Items via MFCMAPI tool.
    2.   
    Check the language code of the problematic e-mails using MFCMAPI, “PR_INTERNET_CPID” and “PR_MESSAGE_CODEPAGE”.
    You may download MFCMAPI from
    http://www.microsoft.com/downloads/details.aspx?familyid=55FDFFD7-1878-4637-9808-1E21ABB3AE37&displaylang=en. If you have any difficulty in this tool, please feel free to send me the meeting request as an attachment. My email address is
    [email protected]
    Fiona

  • Why can't I set the Date format in English for Malaysia Region for my iPhone and iPad?

    Why can't I set the Date format in English for Malaysia Region for my iPhone and iPad?

    Apple should change the settings to Malaysia -> Malay / English / Chinese / Tamil

  • Date format based on locale

    Hi Gurus,
    I am currently making changes to some of our existing forms so that the dates and quantities will format properly based on the locale. I am passing in the local to the form and using this to set the format. Everything works fine except for the US dates, which is getting formatted as Jan 21, 2015 instead of 01/21/2015. Because of space constraints I need to use the "shortened" version. I currently have the field set as type Date/Time and nothing listed under Patterns. I tried using date.short{} in the pattern field, but ended up with 01/21/15. Date.medium{} and date.default{} gave me the Jan 21, 2015. Does anyone know if there is a way to get the full 4 digit year?
    Thanks!
    Julie

    Hello Julie
    You can create the following pattern
    date(en_US) {MM/DD/YYYY}
    A default date value must conform to the short format for the locale specified for the date field. However, by default, Designer displays the default value in the medium locale format at both design time and run time.
    For example, consider a form with a Date/Time Field set to use the German (Germany) locale. You enter the default value for a date in the short format DD.MM.YY. After you change the focus to another field, the value specified in the field on the page is displayed in the medium format DD.MM.YYYY. The formatted value also appears in the medium format if you view the form in the Preview PDF tab.
    Note: At run time, by default, form fillers must edit the value of date/time fields using the short format for the locale specified for the field. If you specify an Edit Pattern on the Edit tab in the Patterns dialog box (Field tab > Patterns), that pattern overrides the short format, and users must enter data that conforms to the Edit Pattern.
    Adobe LiveCycle ES3 * Formatting field values and using patterns
    regards
    sandy

  • Get date format given a locale

    Hello All
    if i have a Locale how can i extract date format attached to the Locale given?
    Is there any api support . i do not want to use simpleDAteFormatter or such classes....
    method should return date format eg "M/d/yyyy" for US local?
    can any one help
    thanks
    prash

    Primarily why do u not want to use the SimpleDateFormat class or related classes ? It would make formatting pretty easy, for e.g. i'm using the DateFormat class to give you a rouch indication of the formatting -
    Date dt = new Date();
    DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.US);
    String formattedDate = df.format(dt);
    System.out.println("Formatted date: " + formattedDate);

  • WD date format & Java standard locale-based pattern

    Hi,
      I have a requairement to implement application that utilize WebDynpro and Servlet programming in one product. Application must be fully localizable. My only problem at the moment is to make WD date input field working exactly thesame as standard Java DateFormat class (or inversely to make Java DateFormat class work in exactly the same way as WD date input field). For example:
    Locale: en_GB (set in browser properties and assigned to portal user)
    WD date input field: 31/08/2006
    Java DateFormat class: 31/08/06
    Snipped of code that produces formated Java date:
    DateFormat.getDateInstance(DateFormat.SHORT, locale).format(date);
    The only problem with this locale is 2-digits year field instead of 4-digits, but in other locales there might be other problems.
    I would be appreciate for any help.
    Kind regards,
      Marcin Zduniak

    Marcin,
    Technically, the required format on servlet side is:
    DateFormat format = new SimpleDateFormat("dd/MM/yyyy", locale);
    System.out.println( format.format(new Date()) );
    However, it's quite complex task to make generic mapping for every locale -- most probably you need internatioanlized property files (one per locale) with formatting strings.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • Strange date format in german locale

    According to /usr/share/i18n/locales/de_DE the date format for german locale is defined as follows "2000-06-24", which is not very common in German-speaking countries.Usually date is written as "24.06.2000". Some programs use this "wrong" format.
    Is it save to edit the file mentioned above to achieve this format?
    Last edited by tyr0 (2010-08-05 18:04:05)

    tyr0 wrote:Thank you, karol, formating the file didn´t force programs to use the new format. Maybe my editing isn´t correct.
    Actually it isn´t a real problem, because in scripts you can use "date +%d.%m.%g", so I´ll mark this topic as solved.
    I see that you decided against marking it as solved - or you forgot about it :-)
    Which programs are showing the wrong date? They may be using their own date format and your locales are / were fine.

  • Using different locale with date format

    Hi guys,
    I'm trying to print of the same date represented in its different locale but can't seem to get it right. I want the
    dates and times to be represented appropriately (e.g., ?Feb? should be represented as ?f?vr.? in a
    localized for France). I've also tried to use SimpleDateFormat but had no luck there either.
    Locale[] locales = { new Locale("fr", "FR"), new Locale("zh", "CN"),
                 new Locale("it", "IT") };
    for (int i = 0; i < locales.length; i++) {
                  //print date in the different locales
                  try {
                       changeLanuage(locales);
              }catch(IOException e) {
                   System.out.println("ERROR:");
              System.out.println()
    public void changeLanuage(Local loc)
    String dateString = "Sun Jan 27 01:56:00 GMT 2008"
    // Get the default MEDIUM/MEDIUM DateFormat
    String sdate = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM).format(new Date());
    System.out.println(sdate);
    try {
    Date date;
    date = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM,loc).parse(sdate);
    String output;
    output = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL,loc).format(date);
    outputStream.write(output);
    }catch(ParseException pe) {
    System .out.println("ERROR: for lanuage could not parse date in string \"" +
    dateString + "\"");
    pe.printStackTrace();
    Running the code, at the terminal i get the following output.Apr 3, 2008 5:00:03 PM
    ERROR: for lanuage could not parse date in string "Mon Jun 12 10:50:00 BST 2006"
    java.text.ParseException: Unparseable date: "Apr 3, 2008 5:00:03 PM"
         at java.text.DateFormat.parse(DateFormat.java:335)
         at readParser.changeLanuage(readParser.java:275)
         at readParser.main(readParser.java:412)
    If anyone can see what the problem is and how i can overcome it, i would greatly appreciate it if said so.
    Thanks a Lot                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    okay i've attempted date --> format but this getting the same exception throw at run time.
    outputStream.write(present+" "+s.next()+"");
    String dateString = "Mon Jun 12 10:50:00 BST 2006"
    try {
         //parse with default format
          Date dtTmp = new SimpleDateFormat("MMM d, yyyy  H:mm:ss a",loc).parse(dateString);
          String strOutDt = new SimpleDateFormat("yyyy-MM-dd").format(dtTmp);
         outputStream.write(strOutDt+"DONE");
    }catch(ParseException pe) {
         System .out.println("ERROR: for lanuage could not parse date in string \"" +
         dateString + "\"");
         pe.printStackTrace();
    }Any suggestions/help would be great, thanks
    ERROR: for lanuage could not parse date in string "Mon Jun 12 10:50:00 BST 2006"
    java.text.ParseException: Unparseable date: "Mon Jun 12 10:50:00 BST 2006"
         at java.text.DateFormat.parse(DateFormat.java:335)
         at readParser.changeLanuage(readParser.java:261)
         at readParser.main(readParser.java:397)

  • ISO date format to local date format

    All
    I have a requirement to convert the given ISO date format String to local date format String
    Can someone give the the piece of code to do this
    e.g I receive the following String "2003-03-15T09:00:00" and need to convert this to "03/15/2003 09:00:00"
    Thanks

    Check out java.text.SimpleDateFormat.

  • Wrong date format when import CSV files

    When you import a CSV file that contains fields with German date formats, these fields are displayed incorrectly.
    Example: Contents of the CSV file "01.01.14". After importing the corresponding cell in Numbers has the content "40178".
    A reformat the cell to a date format is not possible.
    How do I get the date in the new version of Numbers displayed correctly?

    It seems that there are more than a few problems related to import/export with non-US localizations.
    I, personally, don't have a solution to your problem. I started to adjust my Language & Region settings to test your problem but it was several settings, I didn't get it right, and I didn't want to mess up my computer so I set everything back to US/English.
    The only workarounds I can suggest are
    Insert a new column into your table and in it put a formula that adds the number to the date 01.01.1904.  Or,
    Edit the CSV in TextEdit to Replace All "." with "/".  This will work if "." is used for nothing else but these dates.
    I recommend the second one if it will work for you. Hopefully Apple is addressing problems such as the one you are seeing.

  • Quicken 2007 date format problem in Mavericks

    Objective: Get date format in dd/mm/yyyy format in Quicken 2007 (Lion compatible version).
    Current OS: Mavericks 10.9.4
    Hardware: Retina MacBook Pro & iMac 27" 3.2Ghz
    Problem:
    On my rMBP with Mavericks 10.9.4, I’m able to get Quicken 2007 data in dd/mm/yyyy format, as desired.
    On my new iMac (late 2013) with 10.9.4, Quicken recognises the System date formats dd/mm/yyyy (setting up a new register shows System date format) but the registers and data are all in m/d/yy.
    Quicken prefs are set to Canadian, so date formats should automatically be in dd/mm/yyyy, but aren't.
    The Quicken data file is identical on both Macs. The original file goes back to 1991, and has been through all Mac OS iterations since then.
    Pre-Lion, I remember that the workaround was to set the Language & Region to something (English / US, don’t remember which) and then change date formats. Anyway, the dd/mm/yyyy stuck, through Lion and Mavericks on my rMBP, but is causing a problem in the iMac.
    My guess is that Quicken is unable to / blocked out from accessing System date formats in Mavericks 10.9.4.
    Wondering if there’s some way to make Quicken access the Mavericks System date format, and stick to it?
    Possible approach: If some expert in these forums knows how Mavericks works under the hood, how it allows other apps access to System Prefs like date formats etc., perhaps a script or Terminal command could force Quicken 2007 to recognise and accept date formats from System Prefs (Language & Regional settings).
    I'd really appreciate the help; needless to say, the Quicken data is vital to my work.

    Hi Marlon,
    The OS Local definitions. Different countries have different date formats for their location. Check the date format of the OS CultureInfo settings.
    Regards,
    Vítor Vieira

  • Date Format in Webi Reports - Error

    Hi ,
       I am using a date dimension in my webI report, but the dimension value is not populating correctly, it shows some constant value for all fileds. I checked the format of the dimension in the universe. It is in perfect format as date.can anyone guide me on this.
    Thanks
    Praveen

    Hi,
    [0CALDAY].[LEVEL01]
    Will normally be defined as a Date type object, so it is treated by WebI as a date.
    When you use the object in a webI report, it will get the default date format based on the locale settings of the user.
    If you are getting a german date format (dd.MM.yyyy is German), that must be your preferences.
    Two ways to go about this:
    1) change your preferences.
    2) fix the date format of the cell by using the FormatNumber dialogue.
    Go to the date/time part and select Custom.
    Now you can type the format you want, i.e. MM/dd/yyyy
    Hope this helps,
    Marianne

  • Set Default Date Format in 4.2 jQuery Mobile Smartphone

    Hi guys,
    on "normal" Desktop interfaces you can set a default date format in the Globalization settings. Currently I'm working on a JQM app, and I noticed, that the same settings I have for date format in other apps, don't take affect.
    I now read in the 4.2 release notes, that somehow this issue was a bit buggy. Is this fixed? I would like to set a german date format like "DD.MM.YYYY"; (as it's working in desktop apps). How can I do it? In global settings this entry gets saved.
    But whenever I want to set an individual date-picker-item to that format, it changes back to "YYYY-MM-DD" after saving. And I don't really want to get into writing a conversion function in the dml-processing now.
    Thanks for any hints, best regards,
    tobi

    Hi Tobi,
    the "Date Picker (HTML5)" item type maps to the HTML5 input type="date", which requires that the internal format of the date value always has to be YYYY-MM-DD, but it's up to the browser to actually display the date in the format of the local operating system setting. The browser of iOS for example shows the date in the format of my local language/country setting.
    See also http://stackoverflow.com/questions/7372038/is-there-any-way-to-change-input-type-date-format
    To make a long story short, it's not possible to specify the display format for those date pickers, because it's not supported by the HTML5 spec.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Data format problem

    Hello All
    Can anyone help me to solve this data format problem? On the top of my program, I have declare the two variables "purchasePrice" and "purchaseAmount" as double. I dont know why, the compiler still think I didnt initialize this two variables? I have printed the error message below the code.
    Thanks for your help : )
    Jen
    =============================================================================
    double purchasePrice, purchaseAmount, GPS, total_gain, amount;
    //Find the purchase stock price
         rs = stmt.executeQuery("SELECT Price FROM PORTFOLIO WHERE Username = '"+ username+"' AND Symbol = '"+strsymbol+"'");
         while (rs.next()){
              purchasePrice = rs.getDouble("Price");
    //Calculate the amount of Gain Per Share
    GPS = intask - purchasePrice;
    //Find the purchase stock amount
    rs = stmt.executeQuery("SELECT Amount FROM PORTFOLIO WHERE Username = '"+ username+"' AND Symbol = '"+strsymbol+"'");
         while (rs.next()){
              purchaseAmount = rs.getDouble("Amount");
    //Calculate the amount of Total Gain
    total_gain = amount - purchaseAmount;
    =============================================================================
    Error message:
    variable purchasePrice might not have been initialized
    [javac] GPS = intask - purchasePrice;
    [javac] ^
    variable purchaseAmount might not have been initialized
    [javac] total_gain = amount - purchaseAmount;
    [javac] ^
    [javac] 2 errors

    Instance and class variables are automatically initialized to their default values if they are not initialized explicitly, but local variables are not. They have to be initialized explicitly before they can be referenced.
    In your code:
        while (rs.next()){
            purchasePrice = rs.getDouble("Price");
        ...purchasePrice is initialized only if rs.next() returns true. purchaseAmount has the same problem. To avoid this problem, you could declare them by:
    double purchasePrice = 0;
    double purchaseAmount = 0;

  • I have Problem in Upload Date formate

    Hi Friends,
    I have one doubt on WDJ.
    I have done one Application that application having one functionality that is Download data in to Excel. After download data into excel we can change the DATE cell and again upload Excel Data.
    Here what I am getting problem is  download data into SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy"); this date forame. And again upload data  into Same date formate
    But it is not uploaded
    When I download data into SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); this date format that time it will upload successfully.
    This is for Dowload data into Excel
    if(StockEle.getConf_Shp_Date()==null)
    ExcelEle.setConf_Shp_Date("null");
    else
    SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy");
    Date ConfShpDate = wdContext.nodePoDetails_OutTab().getPoDetails_OutTabElementAt(i).getConf_Shp_Date();     
    String ConfShpDate1 = sdf.format(ConfShpDate); // will give dd-MM-yyyy
    ExcelEle.setConf_Shp_Date(ConfShpDate1);
    Here ExcelEle.setConf_Shp_Date data type is String
    This is for Upload data
    try
    SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy");
    //Date dt = sdf.parse(ele.getConf_Shp_Date());
    // java.util.Date Date dt = sdf.parse(ele.getConf_Shp_Date());                                   
    java.util.Date dt = sdf.parse(ele.getConf_Shp_Date());
    java.sql.Date sqlDate = new java.sql.Date(dt.getTime());                                   
    eleout.setEindt(sqlDate);
    catch(Exception e)
    e.printStackTrace();
    eleout.setEindt data type is Date.
    How to Solve this issue I want upload this type of date (dd.MM.yyyy).
    Regards
    Vijay Kalluri

    Hi
    Try to format it before sending it back , try using these code
    // Create Date object.  Date date = new Date(); 
    //Specify the desired date format
    String DATE_FORMAT = "MM/dd/yyyy";
    //Create object of SimpleDateFormat and pass the desired date format.
    SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT); 
    /*  Use format method of SimpleDateFormat class to format the date.  */
    System.out.println("Today is " + sdf.format(date) );
    Best Regards
    Satish Kumar

Maybe you are looking for