• rrrkitamura
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hello,

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?

Code:
public class PackageTestClass {

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


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


********************************


Any help will be appreciated.

Thanks,

Hello,

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?

Code:
public class PackageTestClass {

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


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


********************************


Any help will be appreciated.

Thanks,