Home/Support/Support Forum/Date time - webpage
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Date time - webpage

0 votes
Hi all,

Simple question:

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


asked May 6, 2014 in Rabbit Software by ebodely New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
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
This application explains that how to add zhtml files in your application.

Later take a loom into the updating.zhtml file under

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,

In the above doc, check the Chapter 8 - Our First Dynamic Web Page. It may helpful.
answered May 7, 2014 by cpigilam Veteran of the Digi Community (651 points)
Contact a Digi expert and get started today! Contact Us