0% found this document useful (0 votes)
388 views11 pages

Lecture 4 Dates

The document summarizes Excel date and time functions including TODAY(), NOW(), DAY(), MONTH(), YEAR(), DAYS(), and DATEDIF(). It provides examples of using each function to extract parts of a date like day, month, year or calculate differences between dates in days. Formulas for converting date differences to hours and minutes are also included. Tables with sample data on student names and marks are presented.

Uploaded by

Akanksha Singla
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
388 views11 pages

Lecture 4 Dates

The document summarizes Excel date and time functions including TODAY(), NOW(), DAY(), MONTH(), YEAR(), DAYS(), and DATEDIF(). It provides examples of using each function to extract parts of a date like day, month, year or calculate differences between dates in days. Formulas for converting date differences to hours and minutes are also included. Tables with sample data on student names and marks are presented.

Uploaded by

Akanksha Singla
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 11

TODAY / NOW

Today() function returns today's date in date format,


NOW() function returns current date and time in
excel date and time format

=TODAY()
=NOW()
Example

1-Oct

TODAY() 9/26/2020

NOW()

Formats
44100.48

26 September 20 11:37
DAY, MONTH, YEAR

DAY() function returns the day of the month in


numeric format.
MONTH() returns the month from a user-
supplied date
YEAR() returns the year from a user-supplied
date

=DAY(DATE)
=MONTH(DATE)
=YEAR(DATE)
Example

=DAY(Date) 9/26/2020 11:37 26


=DAY(Date) 9/21/2020 11:37 21

=Month(Date) 9/26/2020 11:37 9


=Month(Date) 9/21/2020 11:37 9

=Year(Date) 9/26/2020 11:37 2020


=Year(Date) 9/21/2020 11:37 2020
DATE & TIME DIFF

DAYS() calculates the number of days between 2


dates
DATEDIF function is used for calculating the
difference between two dates.

=DAYS( end_date, start_date )


or
=DATEDIF(start date,end date,unit)
Example

Date 1 Date 2 Difference


DAYS 9/26/2020 9/15/2020 11
10/10/2018 7/27/2017 440

Date 1 Date 2 Difference


+,- 9/26/2020 9/15/2020 11
10/10/2018 7/27/2017 440

Date 1 Date 2 Difference


DATEDIF 9/26/2020 9/15/2020 11
10/30/2018 7/27/2017 15
10/9/2018 7/21/2017 1
IN Hours In Minutes
264 15840
10560 633600
S.No Name Marks S.No Name Marks
1 abc 34 1 abc 34
2 sdfd 35 2 sdfd 35
3 abc 36 3 abc 36
4 sdfd 37 4 sdfd 37
5 abc 38
6 sdfd 39
marks2
35
36
37
38

You might also like