Database Administration (MOSC)

MOSC Banner

Retrieving a julian date for 2019 with to_date returns wrong value?

edited Jan 25, 2020 4:00AM in Database Administration (MOSC) 5 commentsAnswered

Hello,

I have a char field populated with the year and julian date, for example 19153. when I convert it to a date field with to_date(field,'yyddd'), it returns 6/1/2019. But according to a chart that I have, June 1st is day 152 for 2019 and day 153 for 2020. So it's picking up the 2020 julian date?

Any advice would be appreciated. Thanks

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center