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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

fetchxml split datetime into two columns

(0) ShareShare
ReportReport
Posted on by 2,510

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

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Ben Thompson Profile Picture
    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.

  • Verified answer
    gdas Profile Picture
    50,091 Moderator 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.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans