Hi,
Not sure if this is the right approach. I want to display just the day and month name for a date field in the user profile display form (Display profile (Intranet) (Alternative form)). I changed the form control to a label and trying to use the output format field to format the date.
{%ToDateTime(Value).ToString("MMMMM") + " " + Value.Day#%}
I tried this but it doesn't work. Would appreciate every help.
I've answered on the same questions here ToShortDateString() Macro Method Formatting
So you can use the following macro:
{% String.FormatString("{0:MMMM}", Value) + " " + Value.Day |(identity)GlobalAdministrator%}
Looks like there is no macro method that returns month name, so you can show either month as a number or have to implement your custom macro.
Please, sign in to be able to submit a new answer.