add time and date func