yearOfCentury

yearOfCentury returns the two-digit year for a date-time.

Syntax

Parameters

ParameterTypeDescription
instantInstant

The date-time from which to return the year.

timeZoneZoneId

The time zone.

dateTimeZonedDateTime

The date-time from which to return the year.

Returns

Returns an int value of the two-digit year for a date-time.

Examples