> I'll take a stab at in in PLPGSQL and post the results.
OK. date_part() is your friend ;)
- Thomas