A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
No.of SUNDAY's between two dates???
Joined: Jan 30, 2004
Mar 21, 2004 22:41:00
Could any one tell me a simple logic to get No.of DAY's between 2 dates?
I want to get No. of SUNDAY's between these two dates.
Could any one tell me simple logic?
author & internet detective
Joined: May 26, 2003
Mar 22, 2004 18:35:00
Take a look at the Calendar class. It can give you the day of the week for each of your two dates. From there, you can calculate the number of sundays.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
Joined: Mar 06, 2001
Mar 22, 2004 19:43:00
This is not a
question, I'll move it to
Java in General (beginnner)
I agree. Here's the link:
subject: No.of SUNDAY's between two dates???
how to find number of sundays and saturdays between two dates
How to calculate difference between two dates in months
Difference between two dates
Simple logic for getting the no.of "Day" s between 2 dates
How to get the Dates in-between two Dates
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014