Using formatStateUsing on Select relationship
How can we, for example format a date with the source coming from a relationship? I've tried using formatStateUsing but it doesn't seem to work.
4 Replies
please share code
I would like to format the date on this select
Can you share your model, it looks like you are casting to datetime but should be casting to date.
Otherwise if you want to custom it, use getOptionLabelFromRecordUsing
getOptionLabelFromRecordUsing()