I am trying to get localized date formatting to work.
My first Idea was to use the browser accept-language to format the data, but I am already stuck before that:
How do I get the localized data format? I tried this one, which should work according to the Class definitionNSTimestampFormatter dateTimeFormatter = new NSTimestampFormatter ( "%A %e %B %Y", new Locale("DUTCH"));
return dateTimeFormatter.format(perfDate());
That did not work, it could not resolve the symbol:
Trainingdata.java:45: cannot resolve symbol
symbol : constructor NSTimestampFormatter
(java.lang.String,java.util.Locale)
Then I tried the code from Chuck's book on localized Date Formatting:java.text.SimpleDateFormat aFormat = new java.text.SimpleDateFormat ("EEEE,d MMMM yyyy", new Locale("Dutch"));
return aFormat.format(perfDate());
This one returns the english date format.
What is even more interesting: in Mozilla (set to Dutch Accept-
Language, to compare)
the date format is: Wed 28 Dec 2005 20:30 uur: In Safari the date format is: Wednesday,28 December 2005 Anyone that can shed light on this subject? Best Regards, Johan Henselmans
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
