What time is it?

This sample is a bit more dynamic than Hello World. It will display the current time and date on your Web server. Enter the following lines and save the file as datetime.afp in the root directory of the Web server.

<HTML>

<HEAD>

  <TITLE>Date and Time</TITLE>

<HEAD>

 

<BODY>

<%

  ? datetime()

%>

<BODY>

<HTML>

Now invoke this page in your browser: http://localhost/datetime.afp. The current time and date should be displayed.

In case of error, check the application event viewer where the problem will be amply documented. You can find explanations and detailed descriptions for the de-bugging of AFP pages in the relevant chapters of this documentation.