Get Month Name of java.time.chrono.HijrahDate instance

前端 未结 3 1405
野趣味
野趣味 2021-01-12 08:25
HijrahDate hd=HijrahChronology.INSTANCE.date(LocalDate.of(2014,11, 25));

If we have HijrahDate Instance , it is expected to have a met

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-12 08:49

    public String getIslamicDate(){
        return  DateTimeFormatter.ofPattern("MMMM",new Locale("ar")).format(HijrahDate.now());
    }
    

    I think this should work just fine and return the month in arabic language

提交回复
热议问题