https://hackershare.dev/en/bookmarks/181024
PostgreSQL - How to extract date from a timestamp?