web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

I want to get server current date and time in web resource.How to get server current Date & time

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Mahendar Pal Profile Picture
    45,095 on at

    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

  • Suggested answer
    razdynamics Profile Picture
    17,308 User Group Leader on at

    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

  • Suggested answer
    NatrajY Profile Picture
    3,040 on at

    You can use actions to do this. I wrote a post on this sometime back. Please refer dreamingincrm.com/.../retrieving-server-datetime-using-javascript

  • Suggested answer
    Community Member Profile Picture
    on at

    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.

  • Suggested answer
    Community Member Profile Picture
    on at

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans