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 365 | Integration, Dataverse...
Answered

Birthdate field and how to show just Month/Day not year

(0) ShareShare
ReportReport
Posted on by 26

Hello,

I have a "Birthdate" field that is date only.  How can I get it so that this field shows just the Month/Day  and not the year?  Any help is appreciated.  Thank you.

I have the same question (0)
  • Verified answer
    Nya Profile Picture
    29,060 on at

    Hi,

    You can't do that - there is no such type of data for it. But you can create a field whose data type is single line of text. And then extract the month and day from the birthdate to the custom field.

    The code is something like:

    var dateFieldValue= Xrm.Page.getAttribute('birthdate').getValue();
    var month = dateFieldValue.getMonth() 1;
    var day = dateFieldValue.getDate();
    var dateFormat = month   "-"   day;

  • Pawan Upadhyay Profile Picture
    60 on at

    Hi,

    Follow below steps if u want to show it on UI :

    Try creating new EDT by extending transdate and set dateYear to None.

     pastedimage1652433103011v1.png

  • Suggested answer
    Amit Katariya007 Profile Picture
    10,409 Super User 2025 Season 2 on at

    Hello Buddy,

    This is not possible OOB Date field, But you can still implement your requirement by using below workarounds.

    1. Create 2 Single line of text field and get input one as Day and another as month from the User and use this input.

    2. Create 2 drop down fields 1 for Month and 1 for Days, but the issue will be w.r.t to this solution is leap year. Because in leap year there are 29 days in February and so to show the day field values you will need to know the Birth year.

    Thank you,

    Amit Katariya

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 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans