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
Specifies the date object to be formatted.
Specifies the format required (for example, MM/dd/yyyy).
Return Value
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');
|
Copyright © 2014 CA.
All rights reserved.
|
|