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

Announcements

No record found.

News and Announcements icon
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,064 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 Moderator 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 156

#2
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans