Force24Hour Property



 
The Force24Hour property indicates whether to use 24 hour mode.


Syntax

    DateTimeFormatter.Force24Hour [=bool]
    
Possible Values
    Boolean value that specifies or retrieves the 24hour status.

    The property is read/write.
Remarks
    None.
Examples
    The following example shows the hour and minute 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();
    myDTF.Force24Hour = true;
    myDTF.TimeFormatString = "hh:mm:ss";
    alert(myDTF.FormatTime(myDate));
    </SCRIPT>
    

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

Back to top