how to use date and time function in excel code example Example: excel get current date and time =NOW() # Current time