Java tutorial
import java.time.chrono.ThaiBuddhistChronology; import java.time.chrono.ThaiBuddhistDate; public class Main { public static void main(String[] args) { ThaiBuddhistChronology thaiBuddhistChrono = ThaiBuddhistChronology.INSTANCE; ThaiBuddhistDate now = thaiBuddhistChrono.dateNow(); ThaiBuddhistDate now2 = ThaiBuddhistDate.now(); System.out.println("Current Date in Thai Buddhist: " + now); System.out.println("Current Date in Thai Buddhist: " + now2); } }