dates

Date calculations in peoplecode

given a date How do I write a date function or peoplecode functionality to return the 1st business date.