Promotic
WikipediaLinkedInYoutubeTwitterFacebook

DateAdd - method of object Pm

Description:
Returns a date to which a specified time-span has been added.
Syntax:
DateAdd(interval As String, number As Long, date As Date) As Date
Calling:
d = Pm.DateAdd(interval, number, date)
Parameters:
interval(String) Specifies the added interval (type of time range):
"Y" - year
"m" - month
"d" - day
"H" - hour
"M" - minute
"S" - second
number(Long) The number of interval 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 interval is added.
Note:

The method can also be called in the graphic item events for Web panels.

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

var tDate;
tDate = Pm.DateAdd("m", 1, Pm.Time);  //Returns the date from today in one month
PROMOTIC 8.3.29 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.Tavičská 845/21 703 00 Ostrava-Vítkovice