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));
session.log(sutil.getCurrentDate(null));
mikes on 10/26/2011 at 5:41 pm
- Printer-friendly version
- Login or register to post comments