Okay...
[1] The rare costume lasts until it gets reset/Tama dies (quoteing Bubba28)
[2] If you use it, your Tamagotchi will not take it off until it goes to bed. (bedtimes vary from Tamagothchi to Tamagotchi)
NOTE: YOUR TAMAGOTCHI CAN ONLY USE THE COSTUME IF IT IS AN ADULT