Insert Enterprise Standard Date/Time Between HTML Tag Pair

Visual SlickEdit® - Slick-C Macro - Royalty Free - 2005.01.01 17:15
Send Comments


Insert Enterprise Standard Date/Time Between HTML Tag Pair.

This function stamps the current date/time between two delimiters found on any line anywhere in a file. These delimiters are of the form

<tlaRevision>   </tlaRevision>

This function also supports the delimiters used in an earlier (pre-XML era) implementation. These delimiters are of the form:

<!--tlaRevision-->   <!--tlaRevision-->

The reason you might want to do this is to automate the stamping of ASP and HTML files to provide a date/time visible to the website visitor that documents when the page was last updated.

It is useful to have a "starter" string in the template that you use for module creation. An example of a "starter" string might be:

Revised <tlaRevision></tlaRevision> by AJL.


This function will convert:

<tlaRevision>anything at all</tlaRevision>

To a string such as:

<tlaRevision>2002.06.20 18:31</tlaRevision>

In addition, this function will convert the older style delimiters to the new style. It will convert a string of the form:

<!--tlaRevision-->anything at all<!--tlaRevision-->

To a string such as:

<tlaRevision>2002.06.20 18:31</tlaRevision>


Original contents of file ...

Revised <tlaRevision>1999.11.30 03:18</tlaRevision> by AJL.

Contents after executing tlaRevision ...

Revised <tlaRevision>2002.06.20 18:31</tlaRevision> by AJL.

And this would appear to the website visitor as ...

Revised 2002.06.20 18:31 by AJL.

Input Parameters


Return Codes

Code Message


This function calls tlaDateTime.


Current version verified under:

  • Visual SlickEdit 8.0


Perform the following steps:

  • Select the Code button on this page.
  • When the second window opens, select all the text in the text box.
  • Issue Ctl-C (copy).
  • Create a file in Visual SlickEdit with type Slick-C and extension ".e".
  • Issue Ctl-V (paste).
  • Issue Ctl-S (save).
  • Select PFK-12 to compile the macros.


tlaSlick is a Visual Slick-C module that contains all of the Slick-C macros on this website in a single easy to install package. The tlaSlick module can be purchased by selecting the Buy button on this page.

tlaRevision is included as a function in tlaSlick.

Copyright © 1993-2005 Thom Little Associates, Ltd. revised 2005.01.01 17:15
One Central Square, Keene, NH 03431-3787 phone 603-357-7567