Date logic in Java
I am writing a program that sets a date range based on what weekday the report
is run on wednesday or thursday if it runs on wednesday I want calendar.add(GregorianCalendar.DATE,-1)
if it is thursday calendar.add(GregorianCalendar.DATE,-2)the other part of
the range take that date and subtracts 6.
calendar.get(calendar.DAY_OF_WEEK)has me confused. It is stored as an int
but in the JavaDoc they show the day name as the value.
Can anyone explain calendar.DAY_OF_WEEK?
Thanks in advance!
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL