use epoch for date conversion