 Once magnetized, the magnet will stay magnetized indefinitely.To demagnetize it requires heat or a magnetic field in the opposite direction.This is the effect that provides the element of memory in a hard disk drive.