SetDateTime - method of the PmDateObject object
Description:
Sets the
PmDateObject object to desired year, month, day, etc.
Syntax:
Empty SetDateTime(Long year, Long month, Long day, Long hour, Long minute, Long second, Long milli)
Parameters:
year | (Long) year. Number between 100-9999. |
month | (Long) month. Number between 1-12. |
day | (Long) day. Number between 1-31. |
hour | (Long) hour. Number between 0-23. |
minute | (Long) minute. Number between 0-59. |
second | (Long) second. Number between 0-59. |
milli | (Long) millisecond. Number between 0-999. |
---|
Example:
JavaScriptSelect and copy to clipboard
var oDate = Pm.CreatePmDateObject();
oDate.SetDateTime(2024, 11, 7, 30, 0, 0, 0);