GetTimeFormat - method of the PmgEventViewer object
Description:
Returns the formatting rule for defined column with time.
Syntax:
String GetTimeFormat(String sWhat)
Parameters:
sWhat | (String) Specifies the column with time.
|
---|
Return value:
Returns formatting rule. See
Pm.FormatDate.
If an error occures, then the method returns:
null for
JavaScript or
Empty for
VBScript (it can be tested by the
Pm.IsValid method).
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oViewer = pMe.Items("/Viewer");
var sFormat = oViewer.GetTimeFormat("on");
Dim oViewer
Set oViewer = pMe.Items("/Viewer")
Dim sFormat
sFormat = oViewer.GetTimeFormat("on")