updating datetime fields