Saving timeofday and dayofweek to DB