Difference between revisions of "Manuals/calci/EOMONTH"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="2SpaceContent" align="left"><div class="ZEditBox" align=...")
 
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
<div style="font-size:30px">'''EOMONTH (start_date,months)'''</div><br/>
 +
*where <math>start-date</math> is the starting date
 +
*<math>months</math> is the number of months that can be positive or negative.
 +
**EOMONTH(), returns the serial number of the last day of the month before or after a specified number of months.
  
Syntax
+
== Description ==
  
</div></div>
+
EOMONTH (start_date,months)
----
 
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples
+
For Example,
  
</div></div>
+
EOMONTH("12/12/2013",1) ''returns Fri Jan 31 2014 17:29:48 GMT-0500(Eastern Standard Time)''  
----
 
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
 
----
 
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
  
<font size="5">Description</font>
+
This is the last day of the month, one month after the starting date <math>start-date</math>.
  
</div></div>
+
*The function initially calculates the actual month by adding or subtracting the specified month from the starting date, and displays the last day of that month.
----
+
*Argument <math>start-date</math> should be entered in a date format, using DATE function, or as a result of any other function.
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="6" face="Arial, sans-serif"><font size="6">'''EOMONTH '''</font></font>
+
*If <math>start-date</math> is not a valid date, Calci displays #NULL error message.
 +
*If <math>start-date</math> plus number of months <math>months</math> mentioned, is not a valid date, Calci displays #NULL error message.
 +
*The number of months <math>months</math> can be positive or negative.
 +
*Positive value of <math>months</math> adds up the months from <math>start-date</math> and displays future date, while negative value of <math>months</math> subtracts the months from <math>start-date</math> and displays past date.
 +
*If <math>months</math> is a non-integer, it is truncated.
 +
*If <math>months</math> is omitted, Calci assumes it to be '0' i.e. last day of the same specified month is displayed.
 +
*We can use the DD/MM/YYYY format also. For Example:"14/5/2005[DD/MM/YYYY]".
  
'''<font size="6" face="Arial"></font>'''
+
== Examples ==
  
</div></div>
+
1. EOMONTH("1/1/2010",6) = 07/31/2010
----
 
<div id="7SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> 
 
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">'''EOMONTH'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">(</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">'''sd'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">,</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">'''M'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">)</font></font></font>
+
2. EOMONTH("2/12/2013",-1) = 01/31/2013
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">where sd</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">  is a date that represents the starting date and M is the number of months before or after start date.</font></font></font>
+
3. EOMONTH(NOW(),0) = 02/28/2022
  
</div></div>
+
4. EOMONTH(NOW(),0,"week") = 02/26/2022
----
 
<div id="1SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> <font color="#484848"><font face="Arial, sans-serif"><font size="2">EOMONTH gives the serial number for the last day of the month that is the indicated number of months before or after start date. It is used to calculate maturity dates or due dates that fall on the last day of the month.</font></font></font></div></div>
 
----
 
<div id="9SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> <font color="#484848"><font face="Arial, sans-serif"><font size="2">Let's see an example in Column1Row1</font></font></font>
 
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">C1R1 = 03/02/2007</font></font></font>
+
5. EOMONTH("2001-01-01",0,"week") = 01/06/2001
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">I.e =EOMONTH(C1R1,1) is Mon Apr 30 00:00:00 UTC+0530 2007(<font face="Tahoma, sans-serif"><font size="1">Date of the last day of the month ,</font></font>one month after the date above)</font></font></font>
+
6. EOMONTH(TODAY(), -2.3) = 12/22/2021
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">///rly =EOMONTH(C1R1,-2) is Wed Jan 31 00:00:00 UTC+0530 2007(<font face="Tahoma, sans-serif"><font size="1">Date of the last day of the month, two months before the date above)</font></font></font></font></font>
+
7. EOMONTH(TODAY(), -2) = 12/31/2021
  
<br /><br />
+
8. EOMONTH(TODAY(), 2.5) = 05/15/2022
  
</div></div>
+
9. EOMONTH(TODAY(), -2.5) = 12/16/2021
----
 
<div id="4SpaceContent" class="zcontent" align="left">
 
  
{| id="TABLE3" class="SpreadSheet blue"
+
==Related Videos==
|- class="even"
 
| class=" " |
 
| Column1
 
| Column2
 
| Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class=" " | 03/02/2007
 
| class="sshl_f" | Mon Apr 30 00:00:00 UTC+0530 2007
 
| class="sshl_f" | Wed Jan 31 00:00:00 UTC+0530 2007
 
| class="sshl_f  " |
 
|- class="even"
 
| class="  " | Row2
 
| class="                                              " |
 
| class=" " |
 
| class="f52543                      " |
 
| class="  SelectTD" |
 
<div id="4Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="4Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
|- class="odd"
 
| Row3
 
| class="  " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row4
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| class=" " | Row5
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row6
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|}
 
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
{{#ev:youtube|XqJJ1S8ENs4|280|center|EOMONTH}}
----
+
 
 +
== See Also ==
 +
 
 +
*[[Manuals/calci/DATE  | DATE ]]
 +
*[[Manuals/calci/EDATE  | EDATE]]
 +
*[[Manuals/calci/DATEVALUE  | DATEVALUE]]
 +
 
 +
== References ==
 +
 
 +
*[http://en.wikipedia.org/wiki/Month#Julian_and_Gregorian_calendars Months]
 +
*[http://en.wikipedia.org/wiki/Date-time_group Date Time Group]
 +
 
 +
 
 +
 
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 03:40, 23 February 2022

EOMONTH (start_date,months)


  • where is the starting date
  • is the number of months that can be positive or negative.
    • EOMONTH(), returns the serial number of the last day of the month before or after a specified number of months.

Description

EOMONTH (start_date,months)

For Example,

EOMONTH("12/12/2013",1) returns Fri Jan 31 2014 17:29:48 GMT-0500(Eastern Standard Time)

This is the last day of the month, one month after the starting date .

  • The function initially calculates the actual month by adding or subtracting the specified month from the starting date, and displays the last day of that month.
  • Argument should be entered in a date format, using DATE function, or as a result of any other function.
  • If is not a valid date, Calci displays #NULL error message.
  • If plus number of months mentioned, is not a valid date, Calci displays #NULL error message.
  • The number of months can be positive or negative.
  • Positive value of adds up the months from and displays future date, while negative value of subtracts the months from and displays past date.
  • If is a non-integer, it is truncated.
  • If is omitted, Calci assumes it to be '0' i.e. last day of the same specified month is displayed.
  • We can use the DD/MM/YYYY format also. For Example:"14/5/2005[DD/MM/YYYY]".

Examples

1. EOMONTH("1/1/2010",6) = 07/31/2010

2. EOMONTH("2/12/2013",-1) = 01/31/2013

3. EOMONTH(NOW(),0) = 02/28/2022

4. EOMONTH(NOW(),0,"week") = 02/26/2022

5. EOMONTH("2001-01-01",0,"week") = 01/06/2001

6. EOMONTH(TODAY(), -2.3) = 12/22/2021

7. EOMONTH(TODAY(), -2) = 12/31/2021

8. EOMONTH(TODAY(), 2.5) = 05/15/2022

9. EOMONTH(TODAY(), -2.5) = 12/16/2021

Related Videos

EOMONTH

See Also

References