Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Date Functions

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 6

TODAY

It returns current date accor


Syntax:
Example:

NOW
It returns current time and c
Syntax:
Example:

DAY
It returns the day of a month
Syntax:
Example:
9/22/2014

MONTH
It returns the month in a giv
Syntax:
Example:
9/22/2014

Year
It returns the year of a given
Syntax:
Example:
9/22/2014

DATE
It returns a number that rep
Syntax:
Example:

EOMONTH
It returns the last day of a gi
Syntax:
Example:
9/22/2014

DATEDIF
It returns the difference betw
Syntax:
Example:
Early date
9/1/2014

WEEKDAY
It returns the day number in
Syntax:
Example:
Date
1/7/2015

WEEKNUM
It returns the Week number
Syntax:
Example:
Date
1/7/2015

NETWORKDAYS
It returns the no of workday
Syntax:
Example:
Strt date
1/1/2015
EXCEL GYAN
Add EXTRA SKILLS TO YOUR PROFESSIONAL CAREER

DATE FUNCTION

DAY
eturns current date according to the system format
TODAY()
9/15/2019

W
eturns current time and current date as per system format
NOW()
9/15/2019 9:31

Y
eturns the day of a month in the given date. Number from 1 to 31
DAY(Serial_number)

22 DAY(I24)

NTH
eturns the month in a given date.Number 1(January) to 12(December)
MONTH(Serial_number)

9 MONTH(I30)

r
eturns the year of a given date.
YEAR(Serial_number)

2014 YEAR(I36)

TE
eturns a number that represents a date.
DATE(Year,Month,Day)
9/22/2014 DATE(2014,9,22)

MONTH
eturns the last day of a given month
EOMONTH(Start_date,Months)

9/30/2014 EOMONTH(I47,0) 0-current month

TEDIF
eturns the difference between two dates
DATEDIF(Early_date,Next_date,diff)

Next date
9/22/2014 21 DATEDIF(I54,J54,"D")

EKDAY
eturns the day number in a week based on the given date
Weekday(Serial_number,[Return Type])

4 WEEKDAY(I61) Note:By default return type takes as 1 i.e.1-sun 2-mon,3-t

EKNUM
eturns the Week number in a Year based on the given date
Weekday(Serial_number,[Return Type])

2 WEEKNUM(I68)

TWORKDAYS
eturns the no of workdays in the given two dates
Weekday(Serial_number,[Return Type])

End date
1/31/2015 22 NETWORKDAYS(I75,J75)
i.e.1-sun 2-mon,3-tue,4-wed,5-thu,6-fri,7-sat

You might also like