Postgres Set Variable In T Sql Format Date As Yyyymmdd