Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to check current Date in CRM Web API V9

Posted on by Microsoft Employee

Dear Friends

https://d365sample1.crm6.dynamics.com/api/data/v9.1/accounts?$select=new_name,new_date_to,new_date_from&$filter=new_date_from le today

In above Get request how I will compare the Current Date for example New_Date_From les than Equal to Current Date

Please guide me about this.

Thanks

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to check current Date in CRM Web API V9

    I want to pass the current date in filter parameter in api in browser Not in Javascript code. Like this I just write on browser ...... Today function is not working:

    d365sample1.crm6.dynamics.com/.../accounts$select=new_name,new_date_to,new_date_from&$filter=new_date_from le today

  • Suggested answer
    naresh babu Profile Picture
    naresh babu 425 on at
    RE: How to check current Date in CRM Web API V9

    Hi Anil,

    community.dynamics.com/.../crm-2011-javascript-to-set-the-current-date-and-time

    var currentDateTime = new Date(); // if time differs from time zone to another zone. //new Date().addHours(5);

    Xrm.Page.getAttribute("xyz").setValue(currentDateTime);

  • Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: How to check current Date in CRM Web API V9

    Hi Anil,

    Check this: http://himbap.com/blog/?p=3555

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans