Web CurrDateTime()

Web CurrDateTime()

  

How to display current date and current time of system(not server) in web? If I use CurrDateTime(), server date and time is diplayed. 



Solution

Hi Lakshmishree,

Since all software in a Web App runs on the server, CurrDateTime() can indeed only return the server date/time. If you want to display the current date/time client-side, you either need to use JavaScript, or something like the Time Zone Forge Component.

Solution

Hi!


If you call this action from tlhe client-side, its returns the system date/time (not the server), else if you call this action from the server side, its returns the server date/time.


See this page:

https://success.outsystems.com/Documentation/10/Reference/Logic/Built-in_Functions/Date_and_Time_Built-in_Functions

Hi Rita,

You can only call actions client-side when you are developing a Mobile App. The OP clearly states in both the title of the post and his message he's talking about web. Please first carefully read questions before answering them, thanks.

Kilian Hekhuis wrote:

Hi Rita,

You can only call actions client-side when you are developing a Mobile App. The OP clearly states in both the title of the post and his message he's talking about web. Please first carefully read questions before answering them, thanks.

Ups! True, sorry, just ignore my reply!


Thank you for the explanation!