w3resource

Excel NOW ()function

NOW ()function

This function is used to return the serial number of the current date and time. Before the function was entered if the cell format was General, Excel changes the cell format in such a manner that it matches the date and time format of your regional settings.

Version: Excel 2013

Syntax:

NOW()

Remarks:

  • Excel stores date as sequential serial numbers so that they can be used in calculations. By default, January 1, 1900, is serial number 1, and January 1, 2010, is serial number 40179 because it is 40178 days after January 1, 1900.
  • Numbers to the right of the decimal point in the serial number represent the time; numbers to the left represent the date. For example, the serial number 0.5 represents the time 12:00 noon.

Example - 1

The example below returns the current date and time.

now1

Example - 2:

The example below returns the date and time 12 hours ago (-0.5 days ago).

now2

Example - 3:

The example below returns the date and time 7 days in the future.

now3

Example - 4:

The example below returns the date and time 2 days and 6 hours ago (-2.25 days ago).

now4

Previous: Excel NETWORKDAYS.INTL() function
Next: Excel SECOND() function



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://w3resource.com/excel/excel-now-function.php