The Fairly OddParents in: The Really Bad Day!
S3:E16
2002
IMDb
According to "Da Rules" once every few thousand years a fairy must act bad for a day and it's Cosmo's turn.