internationalization - Internationlization Java -
Is there any way to overwrite basic values for internationalization? Example If I get a date in the EEEE format, then it will give me Sunday , but I need something like Saturday . "EEE, DD MMM, YYY" gives me Sunday, March 27, 2011 I "EEEE, MMM dd, yyyy" Give me the sun, the string used by DateFormat is defined by DateFormatSymbols an object of the object , which contains the setXXX methods, then you can try: dateformsmolds englishSomboles = dateformsimbols.getstation (locale.NGLISH) ; Date formatsmables MySmalls = (DateFormatSmumbles) EnglishSombols Clone (); String [] Days of the week = mySymbols.getWeekdays (); Work day [calendar] UNDA] = "Sunny"; MySymbols.setWeekdays (working days); Date Format F = New SimpleDormat ("EEEE, DD MMM, YYYY", MY SYMBOS); System.out.println (f.format (new date ())); This shows for me: Sun, March 27, 2011 .