Previous Topic: existsScheduleNext Topic: formatString


formatDate

The formatDate function returns a string based on a date and a format specifier. See this list for allowable date and time patterns.

Syntax

dateString = formatDate(dt, format)

Arguments

dt (java.util.Date)

Specifies the date object to be formatted.

format (String)

Specifies the format required (for example, MM/dd/yyyy).

Return Value

dateString (String)

This function returns the date as a string using the format specifier.

Examples

Process.logMessage = "Date value is " + formatDate (Process.CurrentFootprintDate, 'yyyy-mm-dd hh:mm:ss');