Promotic
WikipediaLinkedInYoutubeTwitterFacebook

CreateDate - method of the Pm object

Description:
Creates date and time from its individual components.
Syntax:
Date CreateDate(Long nYear, Long nMonth, Double nDay, Double nHour, Double nMinute, Double nSecond, Long nMilli)
Parameters:
nYear(Long) Year. For example 2021.
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:

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.

Example:
JavaScriptVBScriptSelect and copy to clipboard

var tDate = Pm.CreateDate(2018, 3, 22, 12, 30, 30, 500);  //Returns date 22.3.2018 12:30:30.500 (43181.5211863426)
PROMOTIC 9.0.15 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