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

Date and Time Function

The document contains functions related to date calculations and date comparisons. It includes tasks like fetching date components, calculating future dates by adding time periods, comparing dates to calculate age, and determining the number of working days between two dates while excluding holidays. Various date formats and calculations like years, months, days difference are demonstrated.
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

Date and Time Function

The document contains functions related to date calculations and date comparisons. It includes tasks like fetching date components, calculating future dates by adding time periods, comparing dates to calculate age, and determining the number of working days between two dates while excluding holidays. Various date formats and calculations like years, months, days difference are demonstrated.
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Sr No.

Task Function
1 Current System Date 6/27/2023
2 Current System Date and Time 6/27/2023 16:03
3 Fetch year from a specific date
4 Fetch month from a specific date Jun
5 Fetch day from a specific date Tue
Calculate future date after some time(days,months,year)

Date To Begin Complete Report 1 Year 9


Report Name report Complete Report 9 months later months and 20 days later
Project1 1/3/2023 10/31/2023
Project2 5/4/2014
Project3 3/27/2014
Project4 12/12/2012
Project5 2/2/2011
Project6 6/15/2014
Project7 1/22/2016
Project8 9/1/2014
6/27/2023

Name BirthDate Age in years Age in yymmdd


Aanchal 7/24/1951
Amou 11/7/1981
Jatin 7/6/1966
Kajal 8/23/2000
OP 6/29/1959
Payal Kapoor 3/10/1979
Preeti Joshi 3/8/1950
Shipra Gerg 1/30/1940
Sristi yadav 5/26/1957
Susmita das 12/7/1963
Tapus 5/27/1990
Vikash 6/21/1995
Datedif(1,2,3) Requirements
1 Start_Date
2 End_Date
3 FormatCode

FormatCodes
Code What it returns
"Y" Number Of Years between start and end dates
"M" Number Of Months between start and end dates
"D" No of Days
"YM" Difference in Months--Ignore Years
"YD" Difference in Days--Ignore Years
"MD" Difference in Days--Ignore Years & Months
The number of whole work days b/w two dates 2014 Gov Holidays
Date
Start Date End Date Days Worked-NetWorkDays() 1/5/2014
1/2/2014 2/2/2014 1/7/2014
1/3/2014
10/10/2014

Estimated
Start Date Work Days When Project will End-WorkDay()
1/2/2014 23
014 Gov Holidays
Holiday

You might also like