OpenWGA 7.6 - TMLScript reference

WGA
Method :

createDate([includeMillis])

On object WGA
Usage Creates a new date object holding its creation time
Description This is the primary method to create date objects in TMLScript.

These objects are in fact Java date objects which are used throughout TMLScript. The usage of the native JavaScript date object (available thru "new Date()") is possible but discouraged and will not work on many methods that expect date parameters.

For backward compatibility there still is a method "createDate()" available on TMLContext whose use is discouraged since OpenWGA 5.3.

Parameters includeMillis (Boolean, default true): Controls if the date/time value should contain millisecond values. If false the millisecond value will always be 0 and the precision ends on seconds level.
Return value A new Date object
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events