handle date id