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.
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.
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
Hi,
Follow below steps if u want to show it on UI :
Try creating new EDT by extending transdate and set dateYear to None.
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;
André Arnaud de Cal... 291,711 Super User 2024 Season 2
Martin Dráb 230,458 Most Valuable Professional
nmaenpaa 101,156