Notifications
Announcements
No record found.
I want to get server current date and time in web resource.How to get server current Date & time
*This post is locked for comments
Hello,
CRM does not provide any scripting method for this, but you should be able to get this done using javascript :stackoverflow.com/.../right-way-to-get-web-server-time-and-display-it-on-web-pages
Thanks
Hi Akash,
It won't be possible directly through Javascript. .
- Create Workflow activity that will return date as string or date time.
- Call the workflow activity from action.
- Execute the action through javascript.
It should work perfectly.
Hope this helps, Kindly Verify :)
Best Wishes,Raz
You can use actions to do this. I wrote a post on this sometime back. Please refer dreamingincrm.com/.../retrieving-server-datetime-using-javascript
Going very simple, add jquery and get datetime using Jquery method.
$.now();
it will return you date & time.
please mark answer verified if it resolves the problem. Thanks.
Please refer the below similar link :
stackoverflow.com/.../how-to-access-the-server-date-in-dynamic-crm-2011-through-javascript-or-plugin
a33ik.blogspot.in/.../how-to-retrieve-server-datetime-on.html
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2