get previous working day

Hi,

I need to get previous working day, i know how to get the previous day... but if there any function that returns the previous working day?

or do i have to build a table of which months has 31days, 30 days, or 28 days..etc.. leap year...etc...

thanks,

tak

[289 byte] By [adidas79a] at [2007-11-27 10:31:45]
# 1

Calendar will just about do it for you (though not allowing for bank holidays).

Just subtract one day (add(Calendar.DAY_OF_YEAR, -1)), then if the resulting day is Sunday, subtract another two days.

malcolmmca at 2007-7-28 18:11:49 > top of Java-index,Java Essentials,Java Programming...