Skip to Content

Displaying Server Time On Portal

This article explains how to display the server time on portal. Generally, we will be having requirement to display time on the portal MastHead. This time will basically be the client time i.e., the local desktop time which is very easy to display on portal using JavaScript. As we all know JavaScript runs at Client Side. So in JavaScript we can display client time but not Server time.But how if we have a requirement to display Server Time i.e., a unique time on the Masthead of the portal’s irrespective of their location? This situation may come when ever a Company allows its Vendor's to Bid for contracts through portal within a stipulated time. For this every Vendor should be able to view the same time such that he can bid with in the time. So we need to render the Server time on the portal and make it tick for each second.

View Document

Tags:

No comments