Data and Time of client device
Application Type
Traditional Web

I am currently using CurrDateTime() to show date and time in a field on web app. But its fetching date and time of server. I want that Date and time of clients device. How to achieve this?

Hi @Manjeet Mishra ,


Below link might help you.

https://www.outsystems.com/forums/discussion/39861/how-can-i-get-clients-device-date-and-time/#Post143630

Dear Manjeet

In my understanding there is no such method to check the User's Browser / System time and fetch it. 

If your requirement is to show the visitors time to them, you will need to get their Timezone and convert the Server Time according to the Client's Timezone


You can look into these components if helps:

https://www.outsystems.com/forge/component-overview/7174/client-side-datetime-conversion 

https://www.outsystems.com/forge/component-overview/500/Time+Zone/ 


A few posts in forum says that if you will use CurrDateTime() at client action you will get system time but I am not sure about that. Have you tried? 


Please let us know if you get any other solution for this

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.