Java tutorial
import java.time.DayOfWeek; import java.time.OffsetDateTime; public class Main { public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); DayOfWeek l = o.getDayOfWeek(); System.out.println(l); } }