update Function Set Time and Date