Hello, I've discovered a bug in the date_part function. It returns 25 whendoing select date_part('day','2000-03-26'::date); Anyway, this isn't happening if casting the date to timestamp select date_part('day','2000-03-26'::timestamp);
Alexander