Format date in my custom component?

How do I format a date field?

The date field in my database is in ISO format and I can’t change this. When the record data is displayed its showing the same ISO format. I want to display a readable friendly format.

1 Like

I have used this formula to format dates coming from the server. You can change the “YYYY-MM-DD” to be the format that you want. You can find the formula documentation in the formula screen.

FORMAT_DATETIME_LOCAL(DATETIME(your_iso_date_variable), “YYYY-MM-DD”)

2 Likes