Product Site

5.4.6.30. ordinalDate

Returns the timestamp formatted as a string in extended ISO ordinal date format yyyy-ddd with leading zeros as required.

See also methods fromOrdinalDate (Class Method) and yearDay.

Example 5.236. DateTime class — ordinalDate method
say .DateTime~new(2020, 2, 10)~ordinalDate    -- 2020-041