How to show users the current date or time: Difference between revisions

From Lifeguide Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 5: Line 5:


<code>show page1
<code>show page1
set page1.displaytime to printtime (currenttime, "H:m d-M-y" </code>
set page1.displaytime to printtime (currenttime, "H:m d-M-y") </code>


Please see the tutorial intervention 'Time and Date' on the LifeGuide Community Website for a demo of this function and how it can be used in other ways.  
Please see the tutorial intervention 'Time and Date' on the LifeGuide Community Website for a demo of this function and how it can be used in other ways.  

Latest revision as of 14:55, 15 May 2015

On the page that you would like to show the current date and time, you will need to create a printed variable. Please click on the category link at the bottom of this page for the link showing you how to do this.

In this example, we will call the printed variable displaytime and it will be shown on page1:

show page1 set page1.displaytime to printtime (currenttime, "H:m d-M-y")

Please see the tutorial intervention 'Time and Date' on the LifeGuide Community Website for a demo of this function and how it can be used in other ways.