get current date and time automatically in excel formula code example Example: excel get current date and time =NOW() # Current time