# Date time - webpage

**URL:** <https://forums.digi.com/t/date-time-webpage/12913>\
**Category:** Rabbit Software\
**Tags:** sbc\
**Created:** [May 6, 2014, 4:07pm UTC](https://forums.digi.com/t/date-time-webpage/12913 "2014-05-06T16:07:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebodely](https://avatars.discourse-cdn.com/v4/letter/e/b5a626/32.png) [@ebodely](https://forums.digi.com/u/ebodely)\
**Post date:** [May 6, 2014, 4:07pm UTC](https://forums.digi.com/t/date-time-webpage/12913/1 "2014-05-06T16:07:51Z")

</div>

Hi all,

Simple question:

What is the best way to print the RTC (date and time) on a zhtml webpage?

Thanks,

Ed.

---

<div class="post-metadata">

**Author:** ![cpigilam](https://avatars.discourse-cdn.com/v4/letter/c/fbc32d/32.png) [@cpigilam](https://forums.digi.com/u/cpigilam)\
**Post date:** [May 7, 2014, 8:35am UTC](https://forums.digi.com/t/date-time-webpage/12913/2 "2014-05-07T08:35:31Z")

</div>

Hello,  
You can print the date and time on the web page.

First of all take a look into the sample application updating.c under dc installation path below  
C:\DCRABBIT\_10.72\Samples cpip\rabbitweb  
This application explains that how to add zhtml files in your application.

Later take a loom into the updating.zhtml file under  
C:\DCRABBIT\_10.72\Samples cpip\rabbitweb\pages

In this file mentioned that how to display variable values on the web page.

Then you need to add the code in your application updating.c ,that get the time from the RTC (For this take a look into RTC\_TEST.C sample at C:\DCRABBIT\_10.72\Samples\RTCLOCK). The date value put it in a buffer.

Once added , you can show this buffer on the web page.

I found a doc in the web,  
[http://www.alcom.nl/binarydata.aspx?type=doc/RabbitGeek\_AJAX\_Workbook\_v1\_1.pdf](http://www.alcom.nl/binarydata.aspx?type=doc/RabbitGeek_AJAX_Workbook_v1_1.pdf)

In the above doc, check the Chapter 8 - Our First Dynamic Web Page. It may helpful.
