To have the current date displayed on your pages you can use any of the dynamic languages that are available. Placing the coding within Fusion is accomplished in exactly the same way regardless of whether you are using ASP, PHP, ColdFusion, or JavaScript.
Step 1:
Double click within the text box or table cell where you wish the date to appear to enter edit mode
Step 2:
Press CTRL + T to bring up the HTML dialogue box
Step 3:
Paste the following code within the HTML insertion dialogue box input area
<?php $today = date("F j, Y"); PRINT "$today"; ?>
This will produce a date formated like: October 3, 2024
Other operators you can use and how they will change the way the date is displayed for you
Y - Year as 2004 y - Year as 04 M - Month as Oct m - Month as 10 D - Day as Tue d - Day as 29 z - Day of the year as 301 H - Hours in 24 hour format as 18 h - Hours in 12 hour format as 06 i - Minutes as 15 s - Seconds as 06
Step 4:
Press F11 to bring up the Page Properties palette
Press the Custom Names button to bring up the Custom Names Properties palette
Set the File extension to ASP from the drop down selection
This single page will be generated with the file extension of ASP. If you wish the date to show on all of your pages you should set the default site extension in Publish View to ASP
This tutorial will show you where this setting is located
This page was written by and is maintained by turtle
|