Promotic
WikipediaLinkedInYoutubeTwitterFacebook

CreatePmDateObject - method of object Pm

Description:
Creating the auxiliary object PmDateObject for working with date and time, especially in JavaScript panels.
Syntax:
CreatePmDateObject([tDate As Date]) As Object
Calling:
var d = Pm.CreatePmDateObject(tDate);
Parameters:
tDate[optional] (Date) The value of the PmDate - date and time in the PROMOTIC internal numeric form type with time and date for newly created PmDateObject. If not defined, the new PmDateObject object will be set to current time.
Note:
The method can also be called in the graphic item events for Web Panels.

The method is functional also in Macro expression $.expr.

Example1:
Creates the new PmDateObject object and sets it to current "local time".
var d = Pm.CreatePmDateObject();
Example2:
Creates the new PmDateObject object and sets it to date and time represented by PmDate - date and time in the PROMOTIC internal numeric form (variable v).
var v = Pm.Time();
var d = Pm.CreatePmDateObject(v);
Navigation:
 
- Pm
 
- Abs
- Cos
- CreatePmDateObject
 
 
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice