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.
Similar Messages
-
Strange Date Format: April 16, R.O.C. 98 23:11:44 MESZ
Hello,
my Snow Leopard Mail.app suddenly shows me a strange date format:
April 16, R.O.C. 98 23:11:44 MESZ
(also see http://de.tinypic.com/r/153pjpz/3)
My question would be, what does R.O.C. 98 mean and how can I get rid of it?
Thank you very much!
TillReboot solved it. In these times, you don't even think about something this trivial.
-
[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). -
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!
JulieHello 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 -
My iMac is running 10.5.8, and the date formats are very strange for documents. For example,
Wed FriJan 625,320102005, 8:28AM
I have 2 emails addressrun the following terminal command and log out/in
rm ~/library/preferences/.Global* -
When I migrated to Maverick, the date format for all my pictures went batty. For example, the date will show as 43-6-569 or 85-65-741. I tried adjusting the date manually but it doesn't solve the problem. I thought migrating to Yosemite would fix this but the issue has actually spread to itunes. Now the "Date added" column for all the songs also shows this strange format.
Has anybody seen this issue? Is there a fix?
Thanks.I have it on automatic date setting, using a 24-hour clock. The date format in the Language and Region tab is the typical dd/mm/yy. I double checked every other settings. But I don't think it's a problem with the System Preferences as the date in the manu bar is correct, as is for every other application. The issue is only with iphote and now iTunes.
-
Strange Date format in SM21 log in ERP 2005 system
Hi,
We have upgraded to ERP 2005 from 4.6C. In the system log (SM21), when I look, the date format (yyyy/mm/dd) the year is showing as some strange number 0112 . Not sure if it is a bug or has some fix.
I had installed a new ERP 2005 system in which I have the same problem.
Has anyone encountered the same problem?
Both are in HP-UX and MSSQL.
Thanks & Regards,
P. Kumaravel.HI Daniel,
Further more I get the below message in SAP market place:
Error Message - Access denied (R/3)
What happened?
You do not have permission to access this Object
What can you do?
Please contact a consulting adminstrative
Error code: WEBSMP109-20070115061813-0015
Error details: CE1D7E-702/1A00C/3162-7324CFB9-3CB9265-29AB5B
Service Name: SAPIDB
Service Server: PWDF1737
Process-ID: 5224
Thread-ID: 5792
Sorry for any inconvenience.
Your SAP Service Marketplace Team
Thanks & Regards,
P. Kumaravel. -
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
prashPrimarily 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 ZduniakMarcin,
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 -
Hi There!
We have an XML that we read into an XMLtype - and at a time we want to display it in a normal date type....
Its formatted as this: '2007-02-20T09:30:47.0Z' (Zero 0) - I guess it means no timezone in some ISO 86* standard
select TO_date('2007-02-20T09:30:47.0Z','YYYY-MM-DD"T"HH24:MI:SS.??????') from dual;
I have trie to find a format for reading it ... do you have an idea?
regards
MetteSorry, forgot to say that some of the dates in the XML field is in this format
'2007-02-20T09:30:47+100 ...... (yyyy-mm-dd"T"hh:mi:ssstzhtzm)
/Mette -
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"
ThanksCheck out java.text.SimpleDateFormat.
-
How to take System Date format
Hai,
DateFormat class has various date format like DEFAULT, SHORT, MEDIUM, LONG. These format will display the date in a particular format. As well as Using SimpleDateFormat class we can give our own format.
I want to display the date with system date format. In our system we can set any date format using control panel. But how can we take that format from our program.
If any one know give me idea..
Thanks.The default locale should be enough to set the correct date format for you. You can check the currently set locale with java.util.Locale.getDefault(). java.text.DateFormat.getDateInstance() generates the proper date format for that locale.
The other poster is right, though. You're asking for an OS dependant function which Java, rightly, does not do. -
Is it possible to get the date format from windows locale setting?
I'm using Java 1.6 and the date format instance for SHORT is not the same as windows locale setting.Ah, I see now, sorry.
Must admit that I do not know the answer to this question. I always thought that Java assumed a 'standardised default' for each Locale and did not actually take any account of the platforms settings. Also, I do not think that the language exposes this information anywhere; I have not conducted an exhaustive search but cannot find anything in the System and Toolkit classes that would seem to give you access to this setting.
It may be worthwhile searching to see where this setting is exposed throuhg the win32API. That way, you could always write native code to read the setting, access that using JNI and then make use of the setting. That would still leave one problem IMO; what would you do if the user changed the Windows date setting? Alternatively, you could use a ResourecBudnel to parameterise the date string. That would be far easier to implement and allow the user to establish their own (horror) defaults - assuming this is acceptable given the requirements of the application. -
Hi All,
Kindly let us know whether it is possible to change the date format for the locale specified for the portal user in UME.
ex : for the locale en-us default date format is MM/dd/yyyy can it be customized to dd.MM.yyyy
Thanks in adnvance,
Regards,
Chandran SHi Chandran,
Please check the below forum threads,
Date Format dd/MM/yyyy?
How to change the Date format
Hope this helps.
Thanks,
Ansar -
Hi,
By default the date formats in web dynpro applications changes with the locale. For the locale US, the date format comes with the seperator '/ ' for German with '.'.
But we need to have the seperator '.' for all locales. Where can this standard setting be changed?
Thanks & Regards,
Syam.Hi,
Refer the following link:
Java Webdynpro Date Format
This might be helpful to you.
Regards,
Jithin
Maybe you are looking for
-
Time Capsule won't accept my user name and password for access - Help!
Hi all, My Time Capsule seemed to stop working one day and I had to do a hard reset with the little button at the back. After that it worked and I restored my wireless network settings but now I can't access the Time Capsules hard drive with Time Mac
-
My hotmail email is the only email set up (via the connector) in Outlook. Can iCloud work with a hotmail address or do I need another one and if so do I just add another account/email the normal easy way and it will all work or is there something els
-
IS COMPUTER FIX, INC A 3rd party Independent Tech Support Provider FOR APPLE? THEY CHARGED AS 339.00 DOLLARS TO REMOTELY REPAIR OUR MACBOOK
-
Adobe Edge ( New Window url) not new tab
I dont know how to link my clickable button link to a new window not in a new tab after clicking. Need Help. Thank you!
-
Hello, can someone please convert vi version 14.0b.70 to 8.2.1 for me. Thanks! Rulee Solved! Go to Solution. Attachments: BlueChamber.vi 14 KB