getCurrentDate

String sutil.getCurrentDate ( String format )

Description

Returns the current date in a specified format, or uses the "MM/dd/yyyy HH:mm:ss.SS zzz" if null is given. Uses the session's timezone.

Parameters

  • format The format for the output string

Return Values

A String representing the date and time this method was invoked

Change Log

Version Description
5.5.26a Available in all editions.

Examples

 // Log the current time
 session.log(sutil.getCurrentDate(null));