Postgresql String Length Function Sql Syntax For Date