function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Datetime.format method with timezone doesn't return time-zone-based character of day-of-week.


I try to get formatted date string with day-of-week
by using Datetime.format method with timezone argument.

I want Japanese character day-of-week but It returns English day-of-week .
Do you have any idea?

public class PackageTestClass {

  private String getDate(){
    Date dateWk =;
    Datetime dt = Datetime.newInstance(dateWk.year(), dateWk.month(),;
    return dt.format('M/d(EEE)','Asia/Tokyo');
  static testMethod void testManualShareRead(){
    PackageTestClass ptc = new PackageTestClass();

*My personal setting is like these:
 Time zone: Asia/Tokyo
 location: Japan
 Language: Japanese


Any help will be appreciated.


This might be helpful to you. I got this link from Apex Language Reference (V.9)
thanks rohitmarathe!

i tried at J2SE and it works.
but at apex it doesn't...

well, i'll make utility class to convert day-of-week to japanese character.