Java ThaiBuddhistDate format

Description

Java ThaiBuddhistDate format

import java.time.chrono.ThaiBuddhistDate;
import java.time.format.DateTimeFormatter;

public class Main {
  public static void main(String[] argv) {
    String date = ThaiBuddhistDate.now().format(DateTimeFormatter.ofPattern("dd-MMM-yyyy"));
    System.out.println(date);/*from  w w  w . ja  v  a  2  s  . c o m*/
  }

}



PreviousNext

Related