replaced bad nsdate util methods