Update cookies preferences
Promotic

DateAdd - method of the Pm object

Description:
Returns a date to which a specified time span has been added.
Syntax:
Date DateAdd(String timeSpan, Long number, Date date)
Parameters:
timeSpan(String) Specifies type of time span.
"Y" - year
"m" - month
"d" - day
"H" - hour
"M" - minute
"S" - second
number(Long) The number of time-spans you want to add.
The number can either be positive number, for dates in the future, or negative number, for dates in the past.
date(Date) Date to which time span is added.
Note:
This method is functional also in Macro expression $.expr and in the onDraw event of the PmgCanvas object.
This method is also functional in Web panels.

The method can be used to add or subtract a specified time span from a date. For example, it can be used for calculation a date 30 days from today or a time 45 minutes from now.
See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var tDate = Pm.DateAdd("m", 1, Pm.Time);   // Returns the date from today in one month

History:
Pm8.03.26: Created
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- DateAdd
 
 
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r.o.