Difference between revisions of "Manuals/calci/DATE"

From ZCubes Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div style="font-size:30px">'''DATE(yy,mm,dd)'''</div><br/>
+
<div style="font-size:30px">'''DATE (Year,Month,Date,IsLocalTime)'''</div><br/>
  
*<math>yy</math> represents the year
+
*<math>Year</math> represents the year.
*<math>mm</math> is the month of the year
+
*<math>Month</math> is the month of the year.
*<math>dd</math> is the date.
+
*<math>Date</math> is the date.
 +
*<math>IsLocalTime</math> is the logical value.
 +
**DATE(),returns the serial number of a particular date.
  
 
==Description==
 
==Description==
 
*This function gives the sequential serial number for the given date.
 
*This function gives the sequential serial number for the given date.
*Here <math>yy</math> represents the year and it should start from 1 or more than 1.  
+
*Here <math>year</math> represents the year and the argument is of one to four digits.
*<math>mm</math> is the month of the year and it is from 1 to 12(January to December).
+
*i.e.,The year is starting from 1 and there is no restriction for the argument.  
*<math>dd</math> is the date of the month of the year and it is from 1 to 31.
+
*<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.
 +
 
 +
==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)
  
 
==Examples==
 
==Examples==
  
 
*DATE(99,2,1)=2/1/99
 
*DATE(99,2,1)=2/1/99
*DATE(1600,12,31)=12/31/1600
+
*DATE(1600,12,31)=12/31/1600  
 +
 
 +
==Related Videos==
 +
 
 +
{{#ev:youtube|BGFRdiRjBkc|280|center|DATE}}
  
 
==See Also==
 
==See Also==
Line 23: Line 41:
 
==References==
 
==References==
 
[http://en.wikipedia.org/wiki/Calendar_date  DATE]
 
[http://en.wikipedia.org/wiki/Calendar_date  DATE]
 +
 +
 +
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 14: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