Example usage for java.time ZonedDateTime getDayOfYear

List of usage examples for java.time ZonedDateTime getDayOfYear

Introduction

In this page you can find the example usage for java.time ZonedDateTime getDayOfYear.

Prototype

public int getDayOfYear() 

Source Link

Document

Gets the day-of-year field.

Usage

From source file:Main.java

public static void main(String[] args) {
    ZonedDateTime dateTime = ZonedDateTime.now();

    System.out.println(dateTime.getDayOfYear());
}