getTimeAndDate(String, String) method
Returns the specified property as a date string using the given format, specified as an Agentry date format string (not a Java date format string!).
Syntax
public
String
getTimeAndDate
(
String
property
,
String
format
)
Parameters
-
property –
The property name
-
format –
The date format to use. Note that this is an Agentry Server date format, not the format used by e.g., SimpleDateFormat!
Returns
The property value as a formatted string.
Usage
If you prefer to use Java date format strings, then just call getTimeAndDate(String) to get a Calendar object and feed it to a SimpleDateFormat object.