2

Given a sysdate = Sep 13, 2018 13:14:15,

How do we get/extract that it is 256th day of the year / 257th in leap year from dual?

Pham X. Bach
  • 5,284
  • 4
  • 28
  • 42
dcdum2018
  • 93
  • 1
  • 9

1 Answers1

5

You could use this:

SELECT TO_CHAR(sysdate, 'DDD') FROM dual;

Refer to docs_Format_Models for more informations.

Pham X. Bach
  • 5,284
  • 4
  • 28
  • 42