Description:
Returns the formatting rule for defined column with time.
Syntax:
String GetTimeFormat(String sWhat)
Parameters:
sWhat | (String) Specifies the column with time.
|
---|
Return values:
Returns formatting rule. See
Pm.FormatDate.
If an error occures, then the method returns:
null for
JavaScript or
Empty pro
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, sFormat
Set oViewer = pMe.Items("/Viewer")
sFormat = oViewer.GetTimeFormat("on")