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
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1246027417349263382/Screenshot_2024-05-31_at_16.07.52.png)
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()