samsungpower wrote:Hello, I been trying to figure out how to change the time output display to show in 24 hour format vs 12 hour and failing terribly and need some help.
One solution is to change the time format in Windows. However, you probably don't want to use 24-hour format in Windows or you would have already done that.
If you're trying to change the time format for the display panel, you can do it using the FormatDateTime function in DWS scripts. For example:
Code: Select all
<td>
<%
if (CallCount > 0) then
Send(FormatDateTime('hh:nn:ss', CallInfo.CallBegan))
Else
Send(' ');
%>
</td>
The format for the FormatDateTime function is not described in the help, but it is available in many other places, such as
http://www.delphibasics.co.uk/RTL.asp?N ... atdatetime.
and also in the websever files
If you're trying to change it in the web server files, you can't except by changing the Windows time format. The web server uses simple templates that can't contain scripts.
I see in the help file section under " Sample Script (DWS - Function Library) "
This sample of keeping common functions in a single file was donated by Brian Larsen. Actions can use the {$INCLUDE} directive to access it.
Brian Larsen's date/time library predates the DWS Date & Time Library, which is also documented in the help. We recommend using the DWS Date & Time Library instead since it's easier (and faster) for most purposes.
Finest regards,
Bill Root
Ascendis Software LLC