use getTime() for firefox browser support