Difference between revisions of "Manuals/calci/YEAR"
Jump to navigation
Jump to search
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | =YEAR( | + | <div style="font-size:30px">'''YEAR (Value) '''</div><br/> |
− | |||
where, | where, | ||
− | *<math> | + | *<math>Value</math> represents a date from which year has to be displayed |
− | + | **YEAR() converts a serial number to a year. | |
− | YEAR() | ||
== Description == | == Description == | ||
− | YEAR( | + | YEAR(Value) |
e.g. YEAR(DATE(1980,10,25)) returns '''1980''' as a result. | e.g. YEAR(DATE(1980,10,25)) returns '''1980''' as a result. | ||
*YEAR function returns the year from the date mentioned. Result is an integer value in the range 1900 to 9999. | *YEAR function returns the year from the date mentioned. Result is an integer value in the range 1900 to 9999. | ||
− | *<math> | + | *<math>Value</math> is a date value to be entered either in 'date format' or 'dates returned using formulas'. |
− | *If <math> | + | *If <math>Value</math> is invalid, Calci displays #N/A error message. |
+ | *We can use the DD/MM/YYYY format also. For Example:"14/5/2005[DD/MM/YYYY]". | ||
+ | *We can use Range values also. For Example: YEAR(DATE(1999..2028,10,28)) | ||
+ | * #date notation needs mm/dd/yy format . | ||
== Examples == | == Examples == | ||
Line 37: | Line 38: | ||
=YEAR(B1): Displays the year value for date mentioned in B1. Displays '''2010''' as a result. | =YEAR(B1): Displays the year value for date mentioned in B1. Displays '''2010''' as a result. | ||
=YEAR(DATE(99,10,28)) : Displays the year value for date mentioned. Displays '''1999''' as a result. | =YEAR(DATE(99,10,28)) : Displays the year value for date mentioned. Displays '''1999''' as a result. | ||
− | + | =YEAR("26/10/1999[DD/MM/YYYY]")= 1999 yr. | |
+ | |||
==Related Videos== | ==Related Videos== | ||
Line 53: | Line 55: | ||
*[http://en.wikipedia.org/wiki/Calendar_date Date] | *[http://en.wikipedia.org/wiki/Calendar_date Date] | ||
*[http://en.wikipedia.org/wiki/Calendar_year Calendar Year] | *[http://en.wikipedia.org/wiki/Calendar_year Calendar Year] | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | *[[Z_API_Functions | List of Main Z Functions]] | ||
+ | |||
+ | *[[ Z3 | Z3 home ]] |
Latest revision as of 14:20, 22 August 2018
YEAR (Value)
where,
- represents a date from which year has to be displayed
- YEAR() converts a serial number to a year.
Description
YEAR(Value)
e.g. YEAR(DATE(1980,10,25)) returns 1980 as a result.
- YEAR function returns the year from the date mentioned. Result is an integer value in the range 1900 to 9999.
- is a date value to be entered either in 'date format' or 'dates returned using formulas'.
- If is invalid, Calci displays #N/A error message.
- We can use the DD/MM/YYYY format also. For Example:"14/5/2005[DD/MM/YYYY]".
- We can use Range values also. For Example: YEAR(DATE(1999..2028,10,28))
- #date notation needs mm/dd/yy format .
Examples
Consider the following example that shows the use of YEAR function:
10/8/2014 | 15-February-2010 | |
=YEAR(A1): Displays the year value for date mentioned in A1. Displays 2014 as a result. =YEAR(B1): Displays the year value for date mentioned in B1. Displays 2010 as a result. =YEAR(DATE(99,10,28)) : Displays the year value for date mentioned. Displays 1999 as a result. =YEAR("26/10/1999[DD/MM/YYYY]")= 1999 yr.
Related Videos
See Also
References