The Artima Developer Community
Sponsored Link

Java Buzz Forum
Oracle's TO_DATE() v. Java's Calendar - WEEK_OF_YEAR

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Paul Kilroy

Posts: 58
Nickname: paulkilroy
Registered: Jul, 2004

Paul Kilroy is a Frustrated Programmer
Oracle's TO_DATE() v. Java's Calendar - WEEK_OF_YEAR Posted: Aug 9, 2004 9:02 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Paul Kilroy.
Original Post: Oracle's TO_DATE() v. Java's Calendar - WEEK_OF_YEAR
Feed Title: The Frustrated Programmer
Feed URL: http://liberty.phpwebhosting.com/404.html
Feed Description: The problems I encounter on a daily basis, blogged for posterity. All content will be original, contain poor grammar and a few mispellings.
Latest Java Buzz Posts
Latest Java Buzz Posts by Paul Kilroy
Latest Posts From The Frustrated Programmer

Advertisement
I hit an interesting bug in java.util.GregorianCalendar today. I was writing some reporting code that needed to find the number of widgets sold for each week of the year. I found the current week of the year from Calendar using get(WEEK_OF_YEAR), then selected the sum of selected the sum of widgets sold where TO_DATE( sale_date, 'WW' ) = ?. The documentation for each week of year calculation is

Read: Oracle's TO_DATE() v. Java's Calendar - WEEK_OF_YEAR

Topic: How do you serialize and deserialize object graphs in your UI framework? Previous Topic   Next Topic Topic: Installing Lomboz 3.0 on Eclipse 3.0

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use