OpenWGA 7.10 - TMLScript reference

WGA » WGA.Date()
Method :

format(format[, language])

On object WGA.Date()
Usage

Formats a date and returns a string.

Description

This method is identical with WGA.format(date, ...).

Parameters

format (String)

The format String

langage (String, optional)

optional language to use.

Return value

String

Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Examples

WGA.Date().format("dd.MM.yyyy")
WGA.Date().format("longDateTime", "de")