FormatDate Method



 
The FormatDate method formats a date.


Syntax

    [str=] DateTimeFormatter.FormatDate(date)
    
Parameters
    date Date to format.
Return Value
    Returns a String that contains the formatted date information.
Remarks
    None.
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