R
rsujatha
Can anybody tell me how to find if a particular date I fetch from the
DB is a month end or not??
DB is a month end or not??
Can anybody tell me how to find if a particular date I fetch from the
DB is a month end or not??
Assuming you're using a western calendar, the exact length of the months isCan anybody tell me how to find if a particular date I fetch from the
DB is a month end or not??
Can anybody tell me how to find if a particular date I fetch from the
DB is a month end or not??
Can anybody tell me how to find if a particular date I fetch from the
DB is a month end or not??
Jeroen said:You could add 1000*60*60*24 milliseconds to the date (see
java.util.GregorianCalendar) and check whether the month value has
changed after that.
Rhino said:Assuming you're using a western calendar, the exact length of the months is
very well known:
VisionSet said:I would wrap a GregorianCalendar in my own utility class and have methods
that determine that by setting the calendar to the correct month:
P.Hill said:Except in timezones which include Daylight savings where there is
one day which is 23 hours long.
P.Hill said:Except in timezones which include Daylight savings where there is
one day which is 23 hours long.
Lasse said:Luckily, it's not at the beginning or end of a month, so it won't
change the result in this case.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.