Updated for Reverb and ePublisher 2016.1

Inject Date and Time into Page.zip


I wanted to have the date/time of when I updated or published my output (in this case Reverb) available at the bottom of every page. This would not only tell my users how fresh the content was, but I could also use it to verify that internal users were looking at the correct content when they were providing comments.

Date says GMT

The date/time says that it is GMT, but it is actually the local time the output was produced. It hasn't been enough of a concern for me to look into a fix. I am providing the information in full disclosure though.

To add the date, these files were customized. All of them are included in the .zip file attached to this wiki page except for skin.css. My skin.css has too many changes from the default. I include what to add to skin.css below.


This is the contents of datetime.xsl. This file is not part of the ePublisher distribution. It will appear as a blue override (rather than bold) in your Manage Format Customizations list.

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                              exclude-result-prefixes="xsl msxsl wwdatetime"
 <msxsl:script language="C#" implements-prefix="wwdatetime">
   public long  TicksPerSecond() { return 10000000; }
   public long  TicksPerMinute() { return 600000000; }
   public long  TicksPerHour()   { return 36000000000; }
   public long  TicksPerDay()    { return 864000000000; }

   public long  NowAsTicks()
     long  result;

     result = DateTime.Now.Ticks;

     return result;

   public string  TicksAsRFC1123(long  ticks)
     string    result;
     DateTime  dateTime;

     dateTime = new DateTime(ticks);
     result = String.Format("{0:r}", dateTime);

     return result;


In the .zip file.


In the .zip file.


Add this somwhere in your /Pages/css/skin.css file:

/* Publication Date -Lief 3. May 2011 */
div.pub_date {
    text-align: right;
    font-family: "MyriadProRegular", Arial, Helvetica, Sans-Serif;
    color: gray;
    font-size: 8pt;
    margin-top: 50.0pt;
    margin-right: 10px;


StudyHall/Adding a date/time (last edited 2017-03-08 00:08:13 by TonyMcDow)