0% found this document useful (0 votes)
514 views

Lecture 4 Dates

The document discusses 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.

Uploaded by

ghjjjjjjjj
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)
514 views

Lecture 4 Dates

The document discusses 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.

Uploaded by

ghjjjjjjjj
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() 6/2/2020

NOW()

Formats
43984.71

02 June 20 16:57
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) 6/2/2020 16:57 2


=DAY(Date) 5/28/2020 16:57 28

=Month(Date) 6/2/2020 16:57 6


=Month(Date) 5/28/2020 16:57 5

=Year(Date) 6/2/2020 16:57 2020


=Year(Date) 5/28/2020 16:57 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 6/2/2020 5/22/2020 11
10/10/2018 7/27/2017 440

Date 1 Date 2 Difference


+,- 6/2/2020 5/22/2020 11
10/10/2018 7/27/2017 440

Date 1 Date 2 Difference


DATEDIF 6/2/2020 5/22/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