speed improvements via datenumber and YMD storage