Formatting dates in PostgreSQL can cause problems in React applications due to the disadvantages of using TO_CHAR().
Rather than formatting dates in the backend, it is recommended to send raw dates (in ISO format) and format them in React.
The useDateFormatter custom hook in React allows for clean and reusable date formatting.
It is important to use native JavaScript for basic formatting needs, but a library like dayjs with timezone support may be necessary for more complex requirements.