How to get a date in YYYY-MM-DD format from a TSQL datetime field? September 30, 2022 by Tarik SELECT CONVERT(char(10), GetDate(),126) Limiting the size of the varchar chops of the hour portion that you don’t want.