Promotic
WikipediaLinkedInYoutubeTwitterFacebook

CreateDate - method of object Pm

Description:
Creates date and time from its individual components.
Syntax:
CreateDate(nYear As Long, nMonth As Long, nDay As Double, nHour As Double, nMinute As Double, nSecond As Double, nMilli As Long) As Date
Calling:
t = Pm.CreateDate(nYear, nMonth, nDay, nHour, nMinute, nSecond, nMilli)
Parameters:
nYear(Long) Year. For example 2018.
nMonth(Long) Month of the year (1-12).
nDay(Double) the day of the month (1-31).
nHour(Double) the hour of the day (0-23).
nMinute(Double) the minute of the hour (0-59).
nSecond(Double) The second of the minute (0-59).
nMilli(Long) Number of milliseconds (0-999).
Note:
The method can also be called in the graphic item events for Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var tDate;
tDate = Pm.CreateDate(2018, 3, 22, 12, 30, 30, 500);  //Returns date 22.3.2018 12:30:30.500.
PROMOTIC 8.3.27 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- CreateDate
 
 
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice