About 746,000 results
Open links in new tab
  1. 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?

  2. sql server - How to get a date in YYYY-MM-DD format from a …

    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 …

  3. t sql - How to format datetime in SQL SERVER - Stack Overflow

    May 23, 2014 · 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 …

  4. 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

  5. sql - TSQL DATETIME ISO 8601 - Stack Overflow

    Jun 9, 2015 · When dealing with dates in SQL Server, the ISO-8601 format is probably the best way to go, since it just works regardless of your language and culture settings. In order to …

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

    Sep 2, 2013 · I'm having a sql table with date column named CREATED_TS which holds the dates in different format eg. as shown below Feb 20 2012 12:00AM 11/29/12 8:20:53 PM Feb …

  7. sql server - SQL: how to specify a date format on creating a table …

    Nov 8, 2017 · I want to save the date in format 'dd.mm.yyyy'. So I read there are different formats for a date in SQL (by the way I use Visual Studio and SQL Server). I tried this code: CREATE …

  8. sql - Datetime in where clause - Stack Overflow

    Dec 22, 2009 · The code above won't work if the date format on the SQL Server is not set to US. Use the {ts} method below for locale-independence.

  9. sql server - Format date as yyyy-MM-ddThh:mm:ssZ - Stack …

    Sep 6, 2023 · 26 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 …

  10. DateTime fields from SQL Server display incorrectly in Excel

    Aug 23, 2013 · Countless times during the day I am copying and pasting records from SQL Server Management Studio to Excel. My problem is that a DateTime value such as 8/23/2013 4:51:02 …