About 56 results
Open links in new tab
  1. t sql - How to format datetime in SQL SERVER - Stack Overflow

    Jun 6, 2025 · See the Date and Time Styles section of CAST and CONVERT (Transact-SQL) for all of the built-in formatting styles. I would keep in mind that unless you have a good reason for it, I mean a …

  2. Change Date Format (DD/MM/YYYY) in SQL SELECT Statement

    Jul 22, 2016 · Check the configuration of the SQL client you are using. The display format is applied by the application displaying the values

  3. sql server - How to get a date in YYYY-MM-DD format from a TSQL ...

    Feb 22, 2017 · How do I retrieve a date from SQL Server in YYYY-MM-DD format? I need this to work with SQL Server 2000 and up. Is there a simple way to perform this in SQL Server or would it be …

  4. Convert Date format into DD/MMM/YYYY format in SQL Server

    Jun 25, 2013 · I have a query in SQL, I have to get a date in a format of dd/mm/yy Example: 25/jun/2013. How can I convert it for SQL server?

  5. Using FORMAT () for Dates – SQLServerCentral

    Jul 10, 2015 · The FORMAT () function was introduced in SQL Server 2012 as an additional way to more easily format data types. This handles multiple data types, but perhaps is most useful for dates.

  6. Formatting Dates and Times: The SQL Dialect Divide

    Jul 8, 2019 · SQL Server: CONVERT, FORMAT, and Implicit Magic SQL Server doesn’t use TO_CHAR or TO_DATE, as these are functions built into Oracle.

  7. Format date as yyyy-MM-ddThh:mm:ssZ - Stack Overflow

    I need to format a set of dates in SQL Server to the following format. yyyy-MM-ddThh:mm:ssZ I can't seem to find how to format the date with the T and Z parts included in the string Any ideas how to

  8. How to present Date in SQL without leading zeros

    Jan 12, 2015 · 5 Is there a SQL format to remove leading zeros from the date? Like if the date is 01/12/2015 to present it as 1/12/2015, and 01/01/2016 should be shown as 1/1/2016 etc The entire …

  9. sql - how to convert date to a format `mm/dd/yyyy` - Stack Overflow

    Sep 2, 2013 · This is correct with regard to converting to date first, but 111 is for yyyy/mm/dd, the OP already has the right style (101).

  10. sql - How to format date in where? - Stack Overflow

    Mar 3, 2020 · The conversion of the selection parameters with the help of format-strings should be obvious, and the result is the same information in a SQL date data type. The third conversion …