Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

fetchxml split datetime into two columns

Posted on by 2,397

Hi, is it possible to split datetime into two columns through fetchxml?

*This post is locked for comments

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: fetchxml split datetime into two columns

    Hi ,

    Using FetchXML you can retrieve field value as well as you can do aggregation of field . But split of a field value is not possible .

    If you are executing the FetchXML in client side you can get day/month/year/time value from datetime  value itself. Take a look related function to retrieve the day/month/year/time from date value.

    https://www.w3schools.com/js/js_date_methods.asp

    Make sure you are doing the above operation on datetime value.

  • Verified answer
    Ben Thompson Profile Picture
    Ben Thompson 6,350 on at
    RE: fetchxml split datetime into two columns

    Unfortunately not. Fetchxml will does not perform any transformation tasks it merely returns the data as is ready to be processed by whatever system issued the fetchxml request.

    You would need to query the datetime field and then process it when the results are returned.

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