1

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,039
  • 2
  • 24
  • 35
dcdum2018
  • 83
  • 9

1 Answers1

4

You could use this:

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

Refer to docs_Format_Models for more informations.

Pham X. Bach
  • 5,039
  • 2
  • 24
  • 35