Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Find week number since epoch

673975Dec 4 2008 — edited Dec 5 2008
Hello,

I'm trying to find the week number of a given date since epoch, but all of my searches in Google, etc, seem to return a week number of a given date of a specific year.

For aggregating purposes, we want to be able to group things up by their week number, not by individual year, since the dates will range multiple years.

So that, 1/1/1970 will return 1
And 12/4/1971 will return 101
And so on.
(In MM/DD/YYYY format)

Is there an internal function existing already to do this? From what I've found there isn't, but I'm far from an expert.

Any help would be appreciated, thanks.

--Kevin
This post has been answered by Frank Kulash on Dec 4 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 2 2009
Added on Dec 4 2008
8 comments
1,331 views