FormatTime Method



 
The FormatTime method formats a time.


Syntax

    [str=] DateTimeFormatter.FormatTime(date)
    
Parameters
    date Date to format.
Return Value
    Returns a String that contains the formatted time information.
Remarks
    None.
Examples
    The following example shows the complete time information of the last logfile message.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    last = SiteKiosk.Logfile.LastMessages.Count;
    myDate = SiteKiosk.Logfile.LastMessages.Item(last).LocalTime;
    myDTF = SiteKiosk.SiteKioskUI.CreateDateTimeFormatter();
    alert(myDTF.FormatTime(myDate));
    </SCRIPT>
    

Applies to
    SiteKiosk v6.0 (and later versions).

Back to top