Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Object PmDateObject (PmDateObject)

Description:
The auxiliary object that is used for date and time operations, especially in JavaScript panels. PROMOTIC internally works with date and time in the form of PmDate - date and time in the PROMOTIC internal numeric form (real number). This PmDate format is used by majority of scripting methods of the PROMOTIC objects. If it is necessary to execute more complex operation with the date/time, or to transform it to a string that can be displayed in desired format, then it is handy to transform the date/time from the PmDate form to an auxiliary PmDateObject object.
 
Create the object or
Properties and methods:
Format Getting the string from a date
GetValue Returns the R8 value (VBScript value) of the PmDateObject object.
SetValue Sets the PmDateObject object as a result of conversion of the data value of the VBScript language
SetDateTime Sets the PmDateObject object to desired year, month, day, ...
GetYear Returns the integer representing the year
GetMonth Returns the integer (1-12) representing the month
GetWeekday Returns the integer (0-6) representing the day of the week
GetDay Returns the integer (1-31) representing the day of the month
GetHour Returns the integer (0-23) representing the hour of the day
GetMinute Returns the integer (0-59) representing the minute of the hour
GetSecond Returns the integer (0-59) representing the second of a minute
GetMillisecond Returns the integer (0-999) representing the millisecond of the second
SetYear Sets the PmDateObject object to desired year, month, day, ...
SetMonth Sets the PmDateObject object to desired month, day, ...
SetDay Sets the PmDateObject object to desired day.
SetHour Sets the PmDateObject object to desired hour, minute, second and millisecond
SetMinute Sets the PmDateObject object to desired minute, second and millisecond
SetSecond Sets the PmDateObject object to desired second and millisecond
SetMillisecond Sets the PmDateObject object to desired millisecond
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice