DateTimeFormatter Object



 
The DateTimeFormatter object represents a date and time formatter.


Members Table

Remarks
    This object is returned by the SiteKioskUI.CreateDateTimeFormatter or SiteCafe.CreateDateTimeFormatter method. Use the DateTimeFormatter object to format date and time information.

    Note that the path of a file using SiteKiosk objects must be allowed in the
    SiteKiosk configuration (Security -> Access -> URL's With Script Permission)
    if it is not a browser skin file.
Examples
    The following example shows the complete date 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.FormatDate(myDate));
    </SCRIPT>
    

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

Back to top