Difference between revisions of "Manuals/calci/DATE"

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=...")
 
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
<div style="font-size:30px">'''DATE (Year,Month,Date,IsLocalTime)'''</div><br/>
  
Syntax
+
*<math>Year</math> represents the year.
 +
*<math>Month</math> is the month of the year.
 +
*<math>Date</math> is the date.
 +
*<math>IsLocalTime</math> is the logical value.
 +
**DATE(),returns the serial number of a particular date.
  
</div></div>
+
==Description==
----
+
*This function gives the sequential serial number for the given date.
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
*Here <math>year</math> represents the year and the argument is of one to four digits.
 +
*i.e.,The year is starting from 1 and there is no restriction for the argument.
 +
*<math>month</math> is the month of the year and it is from 1 to 12(January to December).
 +
*It may be positive or negative. when we are geving with the positive value more than 12, it will get adding  that number of months to the first month in the year specified. For e.g.DATE(2017,15,30) = 3/30/2018.
 +
*Suppose the argument is negative, it will get subtracted that number of months plus 1 from the first month in the year specified.For e.g.,DATE(2020,-5,13) = 7/13/2019.
 +
*<math>date</math> is the date of the month of the year and it is from 1 to 31.
 +
*The date argument also with the value of positive or negative.If the date is more than the number of days in the month then the day  adds that number of days to the first day in the month.For e.g DATE(2012,9,40) = 10/10/2012.
 +
*Suppose the argument is negative,day subtracts that number of days plus 1 from the first day in the month specified.For e.g.,DATE(2013,7,-12) = 6/18/2013.
  
Examples
+
==ZOS==
 +
*The syntax is to calculate DATE in ZOS is <math>DATE(Year,Month,Date,IsLocalTime)</math>.
 +
*<math>year</math> represents the year.
 +
*<math>month</math> is the month of the year.
 +
*<math>date</math> is the date.
 +
*For e.g.,DATE(#2013/2/14..2013/3/1)
  
</div></div>
+
==Examples==
----
 
<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>
+
*DATE(99,2,1)=2/1/99
 +
*DATE(1600,12,31)=12/31/1600
  
</div></div>
+
==Related Videos==
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="6" face="Arial, sans-serif"><font size="6">'''DATE '''</font></font>
 
  
'''<font size="6" face="Arial"></font>'''
+
{{#ev:youtube|BGFRdiRjBkc|280|center|DATE}}
  
</div></div>
+
==See Also==
----
 
<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,Column2Row1 and Column3Row1</font></font></font>
+
*[[Manuals/calci/DATEVALUE  | DATEVALUE ]]
 +
*[[Manuals/calci/DAYS360 | DAYS360 ]]
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">I.e. = DATE(C1R1,C2R1,C3R1)</font></font></font>
+
==References==
 +
[http://en.wikipedia.org/wiki/Calendar_date  DATE]
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2"><nowiki>=DATE(2007,6,2) is 6/2/2007</nowiki></font></font></font>
 
  
</div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">
 
  
<font face="Arial">'''=DATE(yyyy,mm,dd)'''</font>
+
*[[Z_API_Functions | List of Main Z Functions]]
  
where,
+
*[[ Z3 |   Z3 home ]]
 
 
'''yyyy''' - represents the year and can be 1 to 4 digits.
 
 
 
'''mm -'''  <font face="Tahoma ">represents the month of year and can be from 1 to 12(january to december).</font>
 
 
 
'''dd''' - represents the day of the month from 1 to 31.
 
 
 
</div></div>
 
----
 
<div id="5SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">
 
 
 
It gives the sequential serial number that represents a particular date.
 
 
 
</div></div>
 
----
 
<div id="1SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">
 
 
 
</div></div>
 
----
 
<div id="6SpaceContent" class="zcontent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
 
 
<font size="5">Remarks</font>
 
 
 
</div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left">
 
 
 
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
| class=" " |
 
| Column1
 
| Column2
 
| Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class=" " | 2007
 
| class=" " | 6
 
| class="sshl_f " | 2
 
| class="sshl_f" | 5
 
|- class="even"
 
| class="  " | Row2
 
| class="sshl_f" | 6/2/2007
 
| class="sshl_f  " | 8
 
| class="  " | 9
 
| class="sshl_f" | 128
 
|- class="odd"
 
| Row3
 
| class="  SelectTD ChangeBGColor SelectTD" |
 
<div id="4Space_Handle" class="zhandles" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="4Space_Copy" class="zhandles" title="Click and Drag over to AutoFill other cells."></div><div id="4Space_Drag" class="zhandles" title="Click and Drag to Move/Copy Area.">[[Image:copy-cube.gif]]</div>12
 
| class="sshl_f" | 67968
 
| 14
 
| class="sshl_f    " | 15
 
|- class="even"
 
| Row4
 
| 17
 
| class=" " | 18
 
| class="sshl_f" | 10000
 
| class="  " | 20
 
|- class="odd"
 
| class=" " | Row5
 
| 2036
 
| 67994
 
| 10025
 
| 168
 
|- class="even"
 
| Row6
 
| 12
 
| 0.850904
 
| 1.619775
 
| 0.525322
 
|}
 
 
 
<div align="left">[[Image:calci1.gif]]</div></div>
 
----
 

Latest revision as of 13:44, 22 August 2018

DATE (Year,Month,Date,IsLocalTime)


  • represents the year.
  • is the month of the year.
  • is the date.
  • is the logical value.
    • DATE(),returns the serial number of a particular date.

Description

  • This function gives the sequential serial number for the given date.
  • Here represents the year and the argument is of one to four digits.
  • i.e.,The year is starting from 1 and there is no restriction for the argument.
  • is the month of the year and it is from 1 to 12(January to December).
  • It may be positive or negative. when we are geving with the positive value more than 12, it will get adding that number of months to the first month in the year specified. For e.g.DATE(2017,15,30) = 3/30/2018.
  • Suppose the argument is negative, it will get subtracted that number of months plus 1 from the first month in the year specified.For e.g.,DATE(2020,-5,13) = 7/13/2019.
  • is the date of the month of the year and it is from 1 to 31.
  • The date argument also with the value of positive or negative.If the date is more than the number of days in the month then the day adds that number of days to the first day in the month.For e.g DATE(2012,9,40) = 10/10/2012.
  • Suppose the argument is negative,day subtracts that number of days plus 1 from the first day in the month specified.For e.g.,DATE(2013,7,-12) = 6/18/2013.

ZOS

  • The syntax is to calculate DATE in ZOS is .
  • represents the year.
  • is the month of the year.
  • is the date.
  • For e.g.,DATE(#2013/2/14..2013/3/1)

Examples

  • DATE(99,2,1)=2/1/99
  • DATE(1600,12,31)=12/31/1600

Related Videos

DATE

See Also

References

DATE