Recipe

Create a custom holiday calendar

It is almost certain that you will want to create a custom holiday calendar. You might want to use a central database, library or service which already contains up to date holidays.

The default holiday calendar provided with jFin just marks weekends (Sat/Sun) as holidays, and is primarily used for consistent testing.

read more | add new comment

Adjust dates

This recipe shows you how to adjust dates using the four main date adjustment conventions.

Whilst this recipe only shows adjusting a date, you can also adjust whole schedules using the same method, just pass a schedule instead of a date to the HolidayCalendar.adjust method.

read more | add new comment

Create a schedule

This recipe shows how to create a 'vanilla' schedule of periods between two dates.

// Create a calendar with today's date
Calendar today = Calendar.getInstance();
// Ask the schedule generator to create

read more | add new comment
Syndicate content